#express backend API works on localhost but calls wrong API (getAll) on every API route remote deploy

7 messages · Page 1 of 1 (latest)

viscid gull
#

Did you test postman with your server origin as the work server name after deploying it

#

If it works in postman (address as prod/work server) than the issue is your web client

viscid gull
#

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

viscid gull
#

I believe by convention only root paths e.g. '/' are GET everything else should be followed by text