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 Using the latest version of routing-controller, it seems that input validation is not working anymore. Here is my code and my setup **Minimal code-snippet showcasing the problem** ```ts...
### Description We found in our project that a different order of Controller imports produces different results for a catch-all 404 route which blocks controllers imported earlier in the file....
**I was trying to...** Context: - Migrating from `serverless` to `sst` - Added `@vendia/serverless-express` during migration (but not 100% sure if this is necessary but without this sst threw an...
### Description Introducing route prefix scoping for global middlewares created a convention that `config.routePrefix` needs to start with a slash ("/"), otherwise global middlewares will not be applied. Let's assume...
When running the `createParamDecorator` function, the bodyparser is not yet called on the request object, so `request.body` is undefined.
## TypeDI was not able to inject sercie container in controller Here is my code i've tried all method written in documentation but still get error ![image](https://github.com/typestack/routing-controllers/assets/50077856/42fd8953-971c-494f-8b91-6cd11639b244) ![image](https://github.com/typestack/routing-controllers/assets/50077856/cb284d67-a6b0-4353-91ac-d540114cbaca) ![image](https://github.com/typestack/routing-controllers/assets/50077856/7535b1a8-f848-4aa7-82b9-cc9b79b32c71) ![image](https://github.com/typestack/routing-controllers/assets/50077856/7509f764-d4a2-4783-9ee6-58bcab095d09)...
### Description Currently, `createExpressServer` function returns `any`. It is the serious type safety crack for the application. ### Proposed solution I suppose, it must be `Express` type from **express** package...
### Description The current js doc for the Put() decorator mistakenly says POST when it should say PUT **Minimal code-snippet showcasing the problem** https://github.com/typestack/routing-controllers/blob/9cd3ff7e25e6bfbcbc43ef33de3cfe18bec4bf59/src/decorator/Put.ts#L11 https://github.com/typestack/routing-controllers/blob/9cd3ff7e25e6bfbcbc43ef33de3cfe18bec4bf59/src/decorator/Put.ts#L17 ### Expected behavior It should...
I'm getting the following error after building the app. I'm getting only when i pass query param. /api/role is working fine. But /api/role?type=1 is throwing below error " TypeError: Cannot...
### Description After upgrading from 9.0.0 to the latest version the objects injected by decorators to controllers are undefined. ```ts import { Response } from 'koa'; import 'reflect-metadata'; import {...