Replies: 2 comments 2 replies
-
I don't think it has anything to do with this suggestion. |
Beta Was this translation helpful? Give feedback.
-
You could do this with a helper As the developer, you have control over the params in your route definitions... But what happens when someone adds a query with the same name? Which one has priority, how would they get merged, how would you distinguish where each one came from? These are all issues that don't exist if you get them explicitly from either |
Beta Was this translation helpful? Give feedback.
-
Hey
I'm attempting to get the query-string parameters from an API endpoint, but I've noticed that they are not returned in
params
provided by an endpoint handler:Currently to get around this we have to go into the
url.searchParams
and useget
:I'd like to see
url.searchParams
merged intoparams
. MDN suggest that there's agetAll
method which could make merging easy.Thoughts?
If not how would I go about implementing a global-middleware so that it could be done in user land rather than by the framework?
Beta Was this translation helpful? Give feedback.
All reactions