I’m facing an issue with the routes.
daasc
HOBBYOP

a month ago

After deploying the API to Railway, I’m facing an issue with the routes.

Routes that should handle POST requests are being received by the API as GET requests, which causes Express to not match the route and return a 404 Not Found error.

Locally, all routes work correctly (POST, PUT, DELETE). The issue only happens in the deployed environment.

I’m trying to understand whether this could be related to Railway configuration, proxy or route rewrites, middleware setup, or any server-side adjustment required to ensure the original HTTP method is preserved.

0 Replies

Loading...