registerRoute method
- String method,
- String route,
- Schema schema,
- dynamic action(
- RequestContext req,
- ResponseContext res
inherited
Registers a route in HTTP endpoint.
method
HTTP method: 'get', 'head', 'post', 'put', 'delete'route
a command route. Base route will be added to this routeschema
a validation schema to validate received parameters.action
an action function that is called when operation is invoked.