-
-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
Would you be open to a contribution that supported query params?
It would be removing the query string from the end of the uri
sent to run
before looking for matching routes, then splitting they query string into its key-value pairs and sending those as a second parameter to the route function. E.g.
router.on('/users', (params, query) => {
// use query params to sort, filter, etc the user list.
const { sort, filter, limit } = query;
...
}
Metadata
Metadata
Assignees
Labels
No labels