DEV Community

Discussion on: A 2021 guide about structuring your Next.js project in a flexible and efficient way

Collapse
 
mtrogers profile image
mtrogers

Hi, thanks!

I'm a little confuddled about nextjs and its API implementation. I'm coming from experience with express routing, in which I would bind endpoints in a routes controller.
What sorts of functions go in your /pages/api/auth/authAPI? and which go in your /modules/auth/api/authAPI? and the /auth/auth.js?