aboutsummaryrefslogtreecommitdiff
path: root/services/polls/polls.service.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-10 18:43:09 +0300
committereug-vs <eug-vs@keemail.me>2020-06-10 18:43:09 +0300
commit709416b125f7099b34686ea8c1d35cf7328a19e8 (patch)
treef2dcc4c91533e314a0ee729a2fae810854a2e433 /services/polls/polls.service.ts
parentfd03f269c0e9498e58fe7a381794ab84991b054e (diff)
downloadwhich-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.ts2
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);
};