Actions
Actions are invoked on route match.
Action can return a promise or an object that will be passed to res.send with status code 200
It can also call response directly res.send("ok").
Request Decorators#
Req, Res#
inject request, response in to action params
Query#
inject query object,in to action params
Body#
inject body object,in to action params
Headers#
inject body object,in to action params
Params#
inject params object,in to action params
Custom Request#
you can define you own custom request action parameters
Response Decorators#
StatusCode#
specify a custom statusCode default 200
Headers#
specify a custom response header
Gzip#
it is possible to compress the response with gzip by calling res.gzip
Cache Control#
specify Cache-Control header in seconds
Custom Response#
you can define your own custom action response decorators