Add setExample before action
Opened this issue · 2 comments
gaand commented
and 404 if not found if action is create
or update
, e.g:
Example.findOne({_id: req.params.id, _owner: req.current_user.id}).then(...).catch(...)
findById
for show.
raq929 commented
Would setExample be defined in the controllers/examples.js
, or in concerns/
?
gaand commented
In the controller.