#express backend API works on localhost but calls wrong API (getAll) on every API route remote deploy
7 messages · Page 1 of 1 (latest)
If it works in postman (address as prod/work server) than the issue is your web client
Did you try using curl from your terminal
If it persits the issue is likely with your server and if so try using a different subdomain to see if you get the same error
In your recipientRoute.ts file it might be getting a conflict and defaulting to a 'GET' request change extend the root of the POST with another name and see
Change 'recipientListRoute.post('/', RecipientListController.create);' to something like
'recipientListRoute.post('/test', RecipientListController.create);' Send the request to the new rout and see
I believe by convention only root paths e.g. '/' are GET everything else should be followed by text