Skip to content

Can gin have a group without a prefix? #2488

Open
@mhewedy

Description

@mhewedy

Can gin have a group without a prefix?

According to the documentation on the method, the answer is YES. but I need to make sure it is supported.

// Group creates a new router group. You should add all the routes that have common middlewares or the same path prefix.

What I am trying to achieve is to group some routes together and apply some middleware (JWT) without having to add some prefix to them all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions