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

ES2015 decorators for express

Results 5 express-decorators issues
Sort by recently updated
recently updated
newest added

app.del was deprecated! https://github.com/expressjs/express/wiki/Migrating-from-3.x-to-4.x#deprecated-since-3x

https://github.com/stewartml/express-decorators/blob/313afc90951fea5ae3ef2206e2525d46bcf2b919/src/lib/index.ts#L214 when using `@route('GET', '/some-path')`, the register fails, since router['GET'] is undefined. it should be `router[route.method.toLowerCase()]`

https://github.com/stewartml/express-decorators/blob/313afc90951fea5ae3ef2206e2525d46bcf2b919/src/lib/index.ts#L74 the 'del' throws error during register, since router['del'] is undefined, I am using express 4.17.1 It should be `route('delete', path, middleware)`

I am not using TypeScript and would still like to use these decorators. Are they also functional when using Babel? Thanks!

Hello. Could you add an instruction to create a custom decorator? What issues I get: the context of the controller class is lost. Could you describe how do you use...