Skip to content

Support for optional trailing slash #915

@alansouzati

Description

@alansouzati

Hi, I tried looking around existing issues but I could not see anything related. So, I would like to know if there is a way to support optional trailing slash at the end of a route.

For example:

r.POST("/users/?", ...)

Right now I have to use two posts:

r.POST("/users", ...)
r.POST("/users/", ...)

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