Skip to content

Cannot capture full urls as params #55

@gabrielfalcao

Description

@gabrielfalcao

Hey there, thanks for this cool library :)

I'm writing an application that needs to capture params that are paths. Is it possible to do it?

Example

    router.add(
        "/delete/:path",
        DeleteFileScreen
    );

Then I'd like to match something like this:

match router.recognize("/delete/home/user/example/foo/bar")

Essentially I would like something like Flask's PATH url converter: https://flask.palletsprojects.com/en/2.0.x/quickstart/#variable-rules.

Thank you

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