aboutsummaryrefslogtreecommitdiff
path: root/services/polls/polls.service.ts
diff options
context:
space:
mode:
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);
};