summaryrefslogtreecommitdiff
path: root/src/services/users/user.service.js
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-15 03:46:51 +0300
committereug-vs <eug-vs@keemail.me>2020-11-15 03:46:51 +0300
commit7da6c6a8e4a3590dfb8569b9fc24b4054552c96f (patch)
tree7e698115c9fc07767a7c4565e64174441d5d67db /src/services/users/user.service.js
parentd113caace46ee53b86a31da2879d991562de45a1 (diff)
downloadbsu-fantom-7da6c6a8e4a3590dfb8569b9fc24b4054552c96f.tar.gz
feat: setup authentication
Diffstat (limited to 'src/services/users/user.service.js')
-rw-r--r--src/services/users/user.service.js6
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);
+};