Reputation: 931
In micronaut we have the ability to enable lots of endpoints. Here I'm using the loggers endpoint defined in the application.yml file like this :
endpoints:
loggers:
enabled: true
This endpoint will be : http://my.host/loggers
Is there a way to change this endpoint adding a context in front of the /loggers ?
I'd like to have : http://my.host/mycontext/loggers
Or at least : http://my.host/mycontext_loggers
I tried to use the @Replace annotation without success.
Any thoughts ?
Thanks
Upvotes: 0
Views: 500
Reputation: 12238
It's not possible to set a context for only the loggers endpoint, however you can set a context for all endpoints with:
endpoints.all.path: "/mycontext"
Upvotes: 2