Skip to content

Does huma supports wildcard/greedy path parameters? #896

@kgantsov

Description

@kgantsov

Basically I want to have an endpoint that would look like /API/files/{path} so I can call it like curl localhost:8000/API/files/path/to/my/file.txt

I use it with fiber router and I know that fiber supports it (fiber docs):

// Wildcard - greedy - optional
app.Get("/user/*", func(c *fiber.Ctx) error {
    return c.SendString(c.Params("*"))
})

Any help in trying to find solution or a workaround would be appreciated

Thanks

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