How to rewrite express Router to api-routes? #16438
Unanswered
popuguytheparrot
asked this question in
Help
Replies: 1 comment 7 replies
-
Next API routes are defined using the
|
Beta Was this translation helpful? Give feedback.
5 replies
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.
-
Hi. I want to remove custom server to api-routes and dont understand how do it.
I have url
api/auth/login
and in custom server handle it like thisauthRouter
I try create folder
api/auth/login.ts
and move authRouter to .ts file with default exportBut it doesnt work
So, how to handle my case right with api-routes?
Beta Was this translation helpful? Give feedback.
All reactions