In Spring Boot app a base path can be set for all API resources with a property server.servlet.context-path
. So the actual endpoint path will be server.servlet.context-path + endpoint path
.
For example, if server.servlet.context-path
is set to "/api/v1", and a resource is mapped to "articles", the full path to that resource is "/api/v1/articles".
Is there something like this in go-chi? Or do I have to define a route with "full" path like
r.Route("/api/v1/articles", func(r chi.Router) {...
Thanks