hapi-decorators
hapi-decorators copied to clipboard
Decorators for HapiJS routes
Bumps [thenify](https://github.com/thenables/thenify) from 3.3.0 to 3.3.1. Changelog Sourced from thenify's changelog. 3.3.1 / 2020-06-18 fixes [0d94a24] - fix: remove eval (#30) (Yiyu He ) Commits 1d054b4 Release 3.3.1 0d94a24 fix:...
how to use with typescript?can you give me a example? ``` @controller('/service') class ServiceController implements Controller { baseUrl!: string; routes!: () => ServerRoute[]; @route('get', '/') async re (request, h) {...
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.16.2 to 9.18.5. Release notes Sourced from highlight.js's releases. 10.3.2 - Oops, "Javascript". Tiny tiny release, just to fix the website incorrectly not listing Javascript in the...
When I use github repository I don't have problem using the decorator pre, but whe I use from npm I have this problem:  My code: ```javascript @route('delete','/{id}') @pre([{ method:...
These methods have an initializer of type `[Function]` instead of a value in the descriptor.
See https://github.com/stewartml/express-decorators/commit/95a95bdf61cf2e155d250123fbab1e4ee8955855
Controller level decorator ``` js @schema('propertyId') @schema(JoiObject) ``` To be used like so: ``` js @controller('/users') @schema('validation') class Users { constructor(validation) { this.validation = validation } @put('/{id}') @validate() update (request,...
``` js @auth(false) @auth('facebook') @auth('facebook', 'google') @auth({ strategies: [] }) ```
Calls a method before the current one. ``` js @pre('fetchUsers') @pre('fetchUser', { assign: 'user', failAction: 'error' }) @pre([ // hapijs pre array config ]) ``` Still wondering how far I...