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

[resolves #20] Add support for parsing and constructing urls with query params #31

Merged
merged 2 commits into from
Mar 16, 2016

Conversation

mridgway
Copy link
Collaborator

No description provided.

@redonkulus
Copy link
Contributor

👍

@@ -111,10 +121,11 @@ Route.prototype.match = function (url, options) {
* @return {String} The generated path string.
* @for Route
*/
Route.prototype.makePath = function (params) {
Route.prototype.makePath = function (params, query) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update docblock


Generates a path string with the route with the given name, using the specified params.

* `name` (required) The route name
* `options` (required) The route parameters to be used to create the path string
* `params` (required) The route parameters to be used to create the path string
* `query` (required) The query parameters to be used to create the path string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think query is required

@lingyan
Copy link
Member

lingyan commented Mar 16, 2016

👍

mridgway added a commit that referenced this pull request Mar 16, 2016
[resolves #20] Add support for parsing and constructing urls with query params
@mridgway mridgway merged commit 6f8c6af into master Mar 16, 2016
@mridgway mridgway deleted the queryParams branch March 16, 2016 22:12
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

Successfully merging this pull request may close these issues.

3 participants