Can you make public accessor to pathPrefix of a Router?
krestianskov opened this issue · comments
In some scenarios, it's handy to get the full path of an endpoint like this:
curPath := "/path/to/resource"
subRouter.Get(curPath, fn)
fullPath := subRouter.PathPrefix() + curPath
Without public accessor, I have to pass sub-routers prefixes everywhere.