Skip to content

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

@krestianskov

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.

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