Next.js App API route returning 404 even though route is present
I noticed something, so when I have some logic inside my route handler, it goes 404, but when I do something like: Then it works fine. Not sure what this behaviour is though.
Next.js App API route returning 404 even though route is present
Summary I have a POST:/api/github route in my next.js app. Path to file: src/app/api/github/route.ts When I try calling the API from postman, it returns 404 error, when I open up...
No badges yet