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
Next-Gen Encryption for Post-Quantum Security | CLEAR by Quantum Knight Icon
Next-Gen Encryption for Post-Quantum Security | CLEAR by Quantum Knight

Lock Down Any Resource, Anywhere, Anytime

CLEAR by Quantum Knight is a FIPS-140-3 validated encryption SDK engineered for enterprises requiring top-tier security. Offering robust post-quantum cryptography, CLEAR secures files, streaming media, databases, and networks with ease across over 30 modern platforms. Its compact design, smaller than a single smartphone image, ensures maximum efficiency and low energy consumption.
Learn More
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