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 browser to just check in case, that also returns 404 error. I also don't have any conflicting paths in app router
PFA the screenshots for more details:
Directory ss:

Ngrok API Response ss:

Next.js logs:

Code SS:

Please help. Thanks!
Additional information
"next": "15.1.2","react": "^19.0.0",middleware.ts code:
export const config: MiddlewareConfig = { matcher: [ "/login", "/logout", "/api/:path*", "/dashboard/:path*", "/user/:path*", ],};