Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support for different ways to pass multiple parameters #8

Open
bradvogel opened this issue Jan 1, 2015 · 3 comments

Comments

@bradvogel
Copy link

Following up on #1, it would be nice for iron-url to support more styles:

/path?foo[]=a&foo[]=b parsed into this.params.foo === ['a', 'b']

/path?foo=a&foo=b parsed into this.params.foo === ['a', 'b']

/path?foo[]=a parsed into this.params.foo === ['a']

/path?foo=a parsed into this.params.foo === 'a'

Express uses qs to do this: https://github.com/hapijs/qs/blob/master/test/parse.js#L73

@bradvogel
Copy link
Author

I can file a PR if this proposal looks OK.

@mitar
Copy link

mitar commented Jan 30, 2015

I would also really want/need this. I would add one more:

/path?foo=a&foo[]=b parsed into this.params.foo === ['a', 'b']
/path?foo[]=a&foo=b parsed into this.params.foo === ['a', 'b']

@mitar
Copy link

mitar commented Jan 30, 2015

Can you please make a pull request? :-)

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

No branches or pull requests

2 participants