Skip to content

Can you make public accessor to pathPrefix of a Router? #88

Description

@krestianskov

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions