Skip to content

Wildcard parameter - allow developers to retrieve the wildcard parameter from URL #185

@guilherme-s3wf

Description

@guilherme-s3wf

Currently, wildcard parameters in the API route URL are not accessible. It would be beneficial to allow developers to retrieve and utilize the value of the wildcard parameter from the request URL. This enhancement will improve the flexibility of routing by enabling dynamic behavior based on the URL structure, making it easier to handle various use cases that depend on path segments.

Usage example:

q.Get("/v1/user/*", func(c *quick.Ctx) error {
	return c.SendString("User: " + c.Param("*"))
})

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