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

Wrong route for Model.exists #260

Closed
2 of 6 tasks
viki53 opened this issue Dec 20, 2016 · 0 comments
Closed
2 of 6 tasks

Wrong route for Model.exists #260

viki53 opened this issue Dec 20, 2016 · 0 comments

Comments

@viki53
Copy link
Contributor

viki53 commented Dec 20, 2016

What type of issue are you creating?

  • Bug
  • Enhancement
  • Question

What version of this module are you using?

  • 2.0.10 (Stable)
  • 2.1.0-rc.5 (2.1 Release Candidate n)
  • Other

Please add a description for your issue:

When using the this.modelApi.exists() method, I got a 404 error, so I checked the actual URL called and the code and found out the BaseLoopBackApi had an error in the exists method:

In routeParams, exists should be :id/exists

I'll make a PR for this.

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

No branches or pull requests

2 participants