-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
app.use('/location', service) vs app.service('/location', service) #287
Comments
@farwayer use() and service() are two completely separate functions:
|
You are not right. We can register service with |
@farwayer Can you send over the page in the docs where you see that? |
@farwayer, Use the That said, if you're only using
|
Actually, regarding plugins, I'm confusing |
And... it's all over the docs. I agree that this is potentially confusing. Maybe I created that standard for myself, so I'll do some more checking. |
Thank you for response but featcher generator generate code with Maybe it is better to remove |
That is what I meant: no one know how is right 😄 |
Well, it's interesting to me that it's all over the docs this way. :) I remember originally using |
But if we need to add middleware must we use |
Well, |
This is very likely to change for the next major version in #258 because not all frameworks have a |
Thanks for discussion guys! It is very important to keep things simple. For now |
That is true (see #285) which definitely needs a better error message. I think changing it to |
it will easily fix wrong generated table name.
* hashPassword fall-through if there's no password The user should have already run a `requireAuth` hook by this point. * JSHint
* hashPassword fall-through if there's no password The user should have already run a `requireAuth` hook by this point. * JSHint
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue with a link to this issue for related bugs. |
For now
service()
makes two different things: getting and registering service. It makes more hard to understand core API. We already haveuse()
function for registering service. In my opinion one function must make one thing and one thing must be done in one way to make API more consistence and code more clear. Maybe it will be better to move registering service inuse()
only in one of next major release?The text was updated successfully, but these errors were encountered: