-
|
Beta Was this translation helpful? Give feedback.
Answered by
RobinTail
Oct 16, 2022
Replies: 1 comment 10 replies
-
Hello @hunght , I'd recommend the following migration strategy.
|
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
hunght
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @hunght ,
I'd recommend the following migration strategy.
express-zod-api
and useattachRouting()
method with your existing expressapp
as shown in the following example:https://github.com/RobinTail/express-zod-api#connect-to-your-own-express-app
routing
object, consider replacement of the your 404-handler (if any) to the one returned byattachRouting()
.a. Use the documentation and examples to create a copy of one of your endpoint handler using
express-zod-api
methods, factories, endpoints builders, middlewares and so on.b. Remove the pointer of your orig…