DEV Community

Discussion on: Why I choose NextJS over CRA for new projects

Collapse
 
dawnind profile image
Mainak Das • Edited

It's like the fs routing. If you've api/auth/register.js then url will be /api/auth/register. Then you've to check if the request is POST or GET or etc via conditional with req.method.