-
Hi, Developping an app with FeathersJS (v5 and Koa) and Svelte for the frontend, I want to compile my frontend in static and put it in the "public" directory to be served from the Feathers app. Is there a way to prefix all my Feathers services routes with "/api" to not get conflicts with the frontend routes ? I tried to check with "koa-router" but couldn't make it work. Looked into creating a subapp but this will put everything with the prefix (I don't mint websockets routes being not prefixed as it won't create conflicts with the frontend), and I'm thinking about manually prefixing all my services paths with "/api" and changing my calls in the frontend to calls services with prefixes, but yeah, was wondering if there was a better way to do it ? Would be better if I can still cal Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think it is better to use something like nginx as frontend web server. And use different port for the api. |
Beta Was this translation helpful? Give feedback.
I think it is better to use something like nginx as frontend web server. And use different port for the api.