Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow capturing a postfix "rest of path" as route parameter #70

Closed
wants to merge 1 commit into from
Closed

Commits on May 5, 2014

  1. Allow capturing a postfix "rest of path" as route parameter

    Allows the following syntax for route strings:
       "/users/:userid/files/::path"
    
    A ::-prefixed name may be supplied last in the string, and in the
    example above this allows matching on strings like this:
       "/users/123/files/Pictures/Summer2012"
    where userid="123" and path="Pictures/Summer1012"
    or
       "/users/123/files/"
    where userid="123" and path="".
    (so unlike other parameters, this one can be empty)
    Robin Eidissen committed May 5, 2014
    Copy the full SHA
    3f8e5de View commit details
    Browse the repository at this point in the history