diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-10 18:43:09 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-10 18:43:09 +0300 |
commit | 709416b125f7099b34686ea8c1d35cf7328a19e8 (patch) | |
tree | f2dcc4c91533e314a0ee729a2fae810854a2e433 /services/polls/polls.service.ts | |
parent | fd03f269c0e9498e58fe7a381794ab84991b054e (diff) | |
download | which-api-709416b125f7099b34686ea8c1d35cf7328a19e8.tar.gz |
feat: add expandAuthor hook to polls
Diffstat (limited to 'services/polls/polls.service.ts')
-rw-r--r-- | services/polls/polls.service.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/polls/polls.service.ts b/services/polls/polls.service.ts index ca75d5a..9635adf 100644 --- a/services/polls/polls.service.ts +++ b/services/polls/polls.service.ts @@ -1,10 +1,12 @@ import { Application } from '@feathersjs/express'; import Model from '../../models/polls/poll.model'; import service from 'feathers-mongoose'; +import hooks from './polls.hooks' const PollService = service({ Model }); export default (app: Application): void => { app.use('/polls', PollService); + app.service('polls').hooks(hooks); }; |