Skip to content

How to wildcard "" and "/" for route? #47

@winds2016

Description

@winds2016

Now need two func for route "/login" and "/login/"?
such as for "/"
app.Get("/", func(ctx *neo.Ctx) (int, error) {
...
})
i need another func for "":
app.Get("", func(ctx *neo.Ctx) (int, error) {
...
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions