Skip to content

Allow + quantifier into path pattern #2134

@lazdmx

Description

@lazdmx

Idea is simple. Addressable resources in hierarchy may have url like /a/b/c/..... So I can GET /a/b or GET /a but cannot GET /a/c. To handle it I simply define path by regexp and it works well, but I think that + quantifier will help to save a couple of lines of code.

That is I would define path like this /:id+ and if it applied to path /a/b/c then req.params.id should have [ 'a', 'b', 'c' ]

My suggestion is to add + quantifier that allow to define

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions