Hey there,
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:
/myapi
And one which is open:
/myapi/api-doc
The api itself exposes /
and /api-doc
.
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