You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a built-in way to pass multiple values to the same parameter?
Many frameworks (e.g. https://stackoverflow.com/a/23181173) support a way to pass arrays of values via the query string (e.g. "?test=1&test=2" or "?test[]=1&test[]=2").
Is there away way to do this in Oak, or is the expectation that we'll parse parameters like this in our routing code (i.e. context.request.url.searchParams.get('test').split(',') ?
Thank you!
The text was updated successfully, but these errors were encountered:
Is there a built-in way to pass multiple values to the same parameter?
Many frameworks (e.g. https://stackoverflow.com/a/23181173) support a way to pass arrays of values via the query string (e.g. "?test=1&test=2" or "?test[]=1&test[]=2").
Is there away way to do this in Oak, or is the expectation that we'll parse parameters like this in our routing code (i.e.
context.request.url.searchParams.get('test').split(',')
?Thank you!
The text was updated successfully, but these errors were encountered: