routing-controllers icon indicating copy to clipboard operation
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.

Results 145 routing-controllers issues
Sort by recently updated
recently updated
newest added

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

type: fix
status: needs triage

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

type: fix
status: needs triage

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

type: question

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

type: fix
status: needs triage

When running the `createParamDecorator` function, the bodyparser is not yet called on the request object, so `request.body` is undefined.

type: fix
type: feature
status: awaiting answer

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

type: fix
status: needs triage

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

type: feature
flag: needs discussion

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

type: fix
status: needs triage

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

type: fix
status: needs triage

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

type: fix
status: needs triage