route-recognizer icon indicating copy to clipboard operation
route-recognizer copied to clipboard

Cannot capture full urls as params

Open gabrielfalcao opened this issue 3 years ago • 0 comments

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 avatar Dec 28 '21 16:12 gabrielfalcao