hapi-decorators icon indicating copy to clipboard operation
hapi-decorators copied to clipboard

Decorators for HapiJS routes

Results 13 hapi-decorators issues
Sort by recently updated
recently updated
newest added

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:...

dependencies

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...

dependencies

When I use github repository I don't have problem using the decorator pre, but whe I use from npm I have this problem: ![image](https://user-images.githubusercontent.com/6109700/35464458-9eba9c62-02bb-11e8-9aad-fe5ba6666507.png) My code: ```javascript @route('delete','/{id}') @pre([{ method:...

These methods have an initializer of type `[Function]` instead of a value in the descriptor.

enhancement
help wanted

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,...

enhancement

``` js @auth(false) @auth('facebook') @auth('facebook', 'google') @auth({ strategies: [] }) ```

enhancement

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...

enhancement

Don't use babel-node, since that isn't meant for production.

documentation