Routing to Controllers

While it’s totally fine to use inline handler, but this can make routes.ts to become messy. Hence, it is recommended to move route handling implementation out of the routes file to a dedicated file called controller.


© 2019 Mezie Labs. All Rights Reserved.