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
Neto2y 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
AmanOP2y ago
Thanks
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server