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

Cannot capture full urls as params #55

Open
gabrielfalcao opened this issue Dec 28, 2021 · 0 comments
Open

Cannot capture full urls as params #55

gabrielfalcao opened this issue Dec 28, 2021 · 0 comments

Comments

@gabrielfalcao
Copy link

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

@gabrielfalcao gabrielfalcao changed the title Is it possible to capture full urls as params? Cannot capture full urls as params Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant