Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware after controller #485

Open
vitorfreitas opened this issue Feb 21, 2020 · 1 comment
Open

Middleware after controller #485

vitorfreitas opened this issue Feb 21, 2020 · 1 comment

Comments

@vitorfreitas
Copy link

Context

How can I chain a middleware to be called after the controller function? I'm writing a middleware that automatically reads the response object and set the correct http status code. What I want to do is just like this example using regular express.js

router.get('/route', middleware1, controllerFn, middleware2)

Your Environment

  • Version used: inversify: ^5.0.1 | inversify-express-utils: ^6.3.2
  • Environment name and version: node 10.15.3
  • Operating System and version (desktop or mobile): Linux popOS 5.3.0-7629-generic
@ttruongatl
Copy link

+1

@PodaruDragos PodaruDragos transferred this issue from inversify/InversifyJS Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants