Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

have you considered using regexp_to_path for validation? #5

Open
csells opened this issue Jun 3, 2021 · 0 comments
Open

have you considered using regexp_to_path for validation? #5

csells opened this issue Jun 3, 2021 · 0 comments

Comments

@csells
Copy link

csells commented Jun 3, 2021

https://pub.dev/packages/path_to_regexp allows you to validate args via REs, e.g. /user/:id(\d+). This saves the user of page_router from doing validation separately; instead it can be built right into the route path pattern. That's what I do with go_router: github.com/csells/go_router.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant