Express Middleware with the Zodios Router #656
Unanswered
activescott
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to use the Zadios router with express but I ran into it not liking the types of my existing express middleware functions. An example of my existing middleware function is as follows:
With the normal express router this works fine when defining a handler like this:
I couldn't easily even decipher types that would work but I'd rather just use the existing Express types and not have to redefine existing middleware to use Zodios - especially since I'm hoping to gradually replace express routes with Zodios and leave some as existing express routes.
Possible to get Zodios router to allow normal express middleware or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions