danielgtaylor / danielgtaylor/huma

Does huma supports wildcard/greedy path parameters?

Open
#896 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4.4k
Forks
285
Avg merge
40m
Merged PRs (30d)
1

Description

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](https://docs.gofiber.io/guide/routing#parameters)):

```go
// 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.