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

request params use associative arrays instead of objects #1

Closed
paolo opened this issue Oct 4, 2013 · 1 comment
Closed

request params use associative arrays instead of objects #1

paolo opened this issue Oct 4, 2013 · 1 comment

Comments

@paolo
Copy link
Contributor

paolo commented Oct 4, 2013

when trying to access the params from a request, I was attempting to simply use this.params as a parameter for Collection.insert().

  // POST /projects
  RESTstop.add('projects', {method: 'POST'}, function () {
    return Projects.insert(this.params);
  });

This is currently failing since this.params is an associative array, initializing params as an object fixes this particular issue. Any reason to use an associative array?

@hellogerard
Copy link
Contributor

Closed by #2.

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