I’m creating a service, lets call it “myapi”
And i want two routes to access it, one which has a jwt plugin to require authentication:
And one which is open:
The api itself exposes
If i create the routes with strip_path (to not send
myapi part to the api itself) on a single service, the
api-doc part is obviously stripped as it matches the path of the route. This means that to access the
api-doc part i have to do
/myapi/api-doc/api-doc which is obviously not what i want.
Is the best way to solve this to create a service for each route?
All help appreciated