route-recognizer
route-recognizer copied to clipboard
Cannot capture full urls as params
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