calling GET, POST, DELETE, and PUT request in one next.js api file

Hi guys is it possible to call all 4 CRUD methods in one Next.js api file?
3 Replies
Neto
Neto16mo ago
On next one file means one API route But you can handle all 4 methods there On app dir you handle each method in a separate method, but in the same file
Aman
Aman16mo ago
Thanks
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View