Create structured, declarative, and beautifully organized class-based controllers with heavy decorators usage in Express / Koa using TypeScript and routing controllers framework. Allows creating controller classes with methods as actions that handle requests. You can use routing-controllers with express.js or koa.js. You can return a promise in the controller, and it will wait until promise resolved and return promise result in a response body. You can use framework's request and response objects directly. If you want to handle the response by yourself, just make sure you return the response object itself from the action. If you have, or if you want to create and configure express app separately, you can use useExpressServer instead of createExpressServer function. Express uses express-session / Koa uses koa-session or koa-generic-session to handle session.

Features

  • Loading middlewares and controllers from directories
  • Use middlewares
  • Convert parameters to objects
  • Make parameter required
  • Selectively disable request/response transform
  • Auto validate action params

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow routing-controllers

routing-controllers Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of routing-controllers!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Frameworks

Registered

2022-11-17