testnet icon indicating copy to clipboard operation
testnet copied to clipboard

add response types along with the shared zod schemas

Open beniaminmunteanu opened this issue 9 months ago • 0 comments

The testnet frontends would benefit from having the response types of the backend APIs in a shared directory, so that they can be referenced instead of duplicated.

So the same way that we are sharing the zod schemas for request validations, we should also share the response types.

Suggestion: Maybe write them as interfaces, and have the backend Models also implement that interface

Controllers:

beniaminmunteanu avatar May 13 '24 11:05 beniaminmunteanu