diff --git a/src/decorators/Controller.ts b/src/decorators/Controller.ts index fdc0eb7..6705734 100644 --- a/src/decorators/Controller.ts +++ b/src/decorators/Controller.ts @@ -80,7 +80,7 @@ export function Controller() // Bind the method to the class instance app.use((req, res, next) => { if(req.path === path && req.method === 'GET') { - fn.bind(controller)(req, res, next); + return fn.bind(controller)(req, res, next); } }); });