Defines a route schema, i.e. a path on the server with type information on request data and response data for every supported HTTP method.
const TestRouteSchema = RouteSchema('/test', { get: MethodSchema< RequestData<{ query: { name: string } }>, ResponseData<{ body: { message: string } }> >() })
The path of the route.
Defines supported HTTP methods on the given path and type information on request and response data.
Generated using TypeDoc
Defines a route schema, i.e. a path on the server with type information on request data and response data for every supported HTTP method.
Example
const TestRouteSchema = RouteSchema('/test', { get: MethodSchema< RequestData<{ query: { name: string } }>, ResponseData<{ body: { message: string } }> >() })