routing-controllers
routing-controllers copied to clipboard
Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage in Express / Koa using TypeScript and Routing Controllers Framework.
### Description Body of type array is not validated. **Minimal code-snippet showcasing the problem** ```ts @Post('/save') save( @Body({ type: Hall, validate: true }) halls: Hall[]) { } ``` ### Expected...
### Description Currently routing-controllers' defaultErrorHandler is enabled by default. If I want to do some error logging and error filtering using middleware, it can only happen after the error is...
### Description https://developer.mozilla.org/en-US/docs/Web/API/EventSource https://caniuse.com/?search=EventSource ### Proposed solution Add a `@Sse()`? https://docs.nestjs.com/techniques/server-sent-events
So I want to return a file from a buffer, however returning the buffer in my action downloads the file as a zip file, when I want to download it...
We found that the input validation in routing-controllers can be bypassed. With this vulnerability, attackers can launch SQL Injection, XSS attacks by injecting malicious inputs. routing-controllers use class-validator to validate...
## Description Controllers are created in the order they are passed into the router controller options, not in the order they are registered with metadata ## Checklist - [x] the...
This problem is for the author of this library or similarly for someone else who has had this problem and could solve What's the matter? The problem is that I...
When I define: controllers: [controllersPath + "/*.js"], when running chai http requests or supertest, the binding of the routes do not occur when using useExpressServer or createExpressServer which lead to...
@sh3d2 one issue is that the service being injected can change for each request (i.e. depends on currentUser). How would you handle that in routing-controller? _Originally posted by @tonyxiao in...
Let's say I have a set of controllers (e.g. `AdminUsersController`, `AdminSettingsController`, etc..) that live under a shared path prefix (e.g. `/api/admin/users` and `/api/admin/settings`) and share an authorization requirement `@Authorized('admin')` Is...