Skip to content
Discussion options

You must be logged in to vote

Hey @egmacke,

I've been looking into using global error filters and global middleware, but have realised that they only apply to routes mounted into the inversify express adapter,

Yeah, that's correct. That's the intended behavior. We prefer to operate in the scope of the adapter in order to avoid unexpected side effects.

Is there a recommended way of handling this use case, or should I just keep using pure express middleware/error handlers?

Mhmm I don't think there's a recommended way in this case, if using a pure express middleware solves your issue I would go for it. At first glance I don't see a straighforward way to go using the inversify adapter, and using both inversify and pur…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by egmacke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants