diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-15 03:46:51 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-15 03:46:51 +0300 |
commit | 7da6c6a8e4a3590dfb8569b9fc24b4054552c96f (patch) | |
tree | 7e698115c9fc07767a7c4565e64174441d5d67db /src/services/users/user.service.js | |
parent | d113caace46ee53b86a31da2879d991562de45a1 (diff) | |
download | bsu-fantom-7da6c6a8e4a3590dfb8569b9fc24b4054552c96f.tar.gz |
feat: setup authentication
Diffstat (limited to 'src/services/users/user.service.js')
-rw-r--r-- | src/services/users/user.service.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/services/users/user.service.js b/src/services/users/user.service.js index 67f2ae6..afb3b9e 100644 --- a/src/services/users/user.service.js +++ b/src/services/users/user.service.js @@ -1,7 +1,11 @@ const service = require('feathers-mongoose'); const Model = require('./user.model.js'); +const hooks = require('./user.hooks.js'); const UserService = service({ Model }) -module.exports = app => app.use('/users', UserService); +module.exports = app => { + app.use('/users', UserService); + app.service('users').hooks(hooks); +}; |