#Custom endpoint gives an 404

12 messages · Page 1 of 1 (latest)

versed cloud
#

In which file is that route?

Are you sure that's the correct import for bodyparser

quartz zenith
#

the file is in api/index.ts

#

And i thinks thats the correct import yes. Or do you think its is not correct?

versed cloud
#

Search for endpoint 404 here

quartz zenith
#

I've seen the channel, but none of it resolves my problem tbh..

versed cloud
#

It works for me in non-ts file

tidal trail
#

Make sure this is in your tsconfig:

"esModuleInterop": true,
quartz zenith
#

Was already on true ..

digital flume
#

what about the import of cors?
maybe try :

  • import * as cors from "cors"
  • try to remove the second cors middleware too
#

also try with postman