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.
Is there a way to set node's [`server.keepAliveTimeout`](https://nodejs.org/docs/latest-v10.x/api/https.html#https_server_keepalivetimeout) and [`server.headersTimeout`](https://nodejs.org/docs/latest-v10.x/api/https.html#https_server_headerstimeout)? I've tried this, but it doesn't appear to be working: ```ts const server = createKoaServer({ ... }); server.listen(3000); server.keepAliveTimeout =...
Even the most basic example of uploading multiple files does not work. It results in an error: **Invalid files, check 'error' property for more info.** This is because the **validation...
**I was trying to...** I am trying to use Render() with EJS. **The problem:** First off I want to thank you for this library, it really awesome and have really...
### Description ```bash $ yarn install warning backend > routing-controllers > [email protected]: Please use @koa/multer instead, see ```
### I was trying to... use this library with `express-mysql-session`, but it doesn't work. ### The problem: The error occurs when... - Run the code below. - Access to `localhost:3000`...
**I was trying to...** create jest unit tests for a controller action that implements UseBefore with a custom middleware **The problem:** What would be the recommended way of mocking the...
**I was trying to download files from client but routing-controller return NotFound error but my target file available in the mentioned path** **Some one help to what's my mistakes** **Code**...
@UseBefore(bodyParser.urlencoded()) handleForm(@Body() form: any) {} For Express only. There will be throw TypeError: next is not a function in koa because req and res were replaced by ctx. // Wrong...
I have a Header Param like this: ``` import { Get, JsonController, QueryParams, HeaderParam } from 'routing-controllers'; @Get() async someResources( @HeaderParam("X-User-Data", { validate: { // ... } }) userDataB64: string...