Skip to content

Support for Path Parameters?Β #2

@bradcypert

Description

@bradcypert

I'm looking through the documentation for Zinc after having some issues with Zap and I much prefer the API that Zinc offers, however, I'm noticing that we don't really have a way to support path parameters in Zinc. Ideally, I'd be able to do something like the following:

 var z = try zinc.default();
 var router = z.getRouter();

try router.get("/users/:id", getUser);

where id would be parsed out and provided to getUser. I know that this isn't exactly trivial and there's a lot of edge cases here, but I think this would be huge for adoption of Zinc!

Looking forward to hearing back!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions