JsonApiRoute problem

Hello

I have request that I must wait on route that starts with “/api” (example: /api/external-hello) where external app is sending some json data.
I have disabled default json api route via ConfigurePlugin<PredefinedRoutesFeature>(feature => feature.JsonApiRoute = null)) and above route is now available to external app.
However, my app also should have vue-vite dashboard and problem I’m having is that JsonApiClient in template is trying to authenticate via “/api/Authenticate” and I’m getting 404 since that route now does not exists.

How to authenticate in this case?

Kind regards,

Your clients need to be configured to use the legacy pre-defined routes:

https://docs.servicestack.net/routing#revert-to-legacy-predefined-routes

client.basePath = null;
1 Like

Completelly overlooked this part of documentation, sorry for wasting your time.