diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-14 18:07:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 18:07:37 +0300 |
commit | 52d3bfcecc2cfbaed8e65728124477131bc0d233 (patch) | |
tree | 5699ba9d7e16b89e6ebefaf49d6992bb3eb6f3cd /services/users/users.service.ts | |
parent | 1860396a1286936374ab88937da3e0b6b9b1a36d (diff) | |
parent | 1ab199588d5353d98d49172e1f35d73452069faf (diff) | |
download | which-api-52d3bfcecc2cfbaed8e65728124477131bc0d233.tar.gz |
Merge pull request #7 from eug-vs/auth
Setup authentication
Diffstat (limited to 'services/users/users.service.ts')
-rw-r--r-- | services/users/users.service.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/users/users.service.ts b/services/users/users.service.ts index 988d162..08c347d 100644 --- a/services/users/users.service.ts +++ b/services/users/users.service.ts @@ -1,10 +1,12 @@ import { Application } from '@feathersjs/express'; import service from 'feathers-mongoose'; import Model from '../../models/users/user.model'; +import hooks from './users.hooks'; const UserService = service({ Model }); export default (app: Application): void => { app.use('/users', UserService); + app.service('users').hooks(hooks); }; |