Skip to content

🤗 [Question]: app.GetRoute need set path param #4193

@deatil

Description

@deatil

Question Description

set url:

app.Get("/a/:name", fn).Name("a-name")

now get url:

name_route := app.GetRoute("a-name")

i want get url:

name_route := app.GetRoute("a-name", map[string]string{"name": "name-val"})

but now dont set the path name.

Code Snippet (optional)

i want get url:

name_route := app.GetRoute("a-name", map[string]string{"name": "name-val"})

or

name_route := app.GetRoute("a-name").GetUrl(map[string]string{"name": "name-val"})

name_route should will get:

name_route := "/a/name-val"

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my questions prior to opening this one.
  • I understand that improperly formatted questions may be closed without explanation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions