Skip to content

Cross-segment regex route matching #613

@mzr

Description

@mzr

Hi,

I know I can have a route defined with regex like /abcd/:id:.*, however this doesn't match /abcd/a/b. Is there a way to do this in Gotham, where .* is not constrained to a single segment? I can always have a glob matcher /abcd/* and parse rest of the uri myself, but was wondering if Gotham supports something like this and I have missed it.
Ideally I'd like something like: ^/abcd/(.+)\.cgi/*

I'm pretty much extracting a path and passing it to a fCGI script down the line.

Thanks!

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