2 ms·
With Next.js it's just a matter of dropping a file in the src/pages/api directory. So I'd create API files like create-user.js, update-user.js, etc.
by makeee 6y ago
With Next.js it's just a matter of dropping a file in the src/pages/api directory. So I'd create API files like create-user.js, update-user.js, etc.