near / near-enhanced-api-server

https://console.pagoda.co/apis?tab=enhancedApi#/
18 stars 6 forks source link

All the endpoints return 404 if API_BASE_PATH is specified #50

Closed telezhnaya closed 1 year ago

telezhnaya commented 1 year ago

If I put to .env this:

API_BASE_PATH=/olya

I have 404 as the response to all the endpoints on my local machine. Magically, it works fine in production (Pavel showed it on Monday)

@roshaans could you please investigate?

roshaans commented 1 year ago

We currently we use the base path to generate a request from the Swagger UI but we do not make our endpoints available from the base path.

The reason it works in production is because we reroute the user with some middleware by omitting the base path from the URL.