aboutsummaryrefslogtreecommitdiff
path: root/services/votes/votes.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/votes/votes.service.ts')
-rw-r--r--services/votes/votes.service.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/votes/votes.service.ts b/services/votes/votes.service.ts
new file mode 100644
index 0000000..3947d9b
--- /dev/null
+++ b/services/votes/votes.service.ts
@@ -0,0 +1,10 @@
+import { Application } from '@feathersjs/express';
+import Votes from './votes.class';
+
+import hooks from './votes.hooks';
+
+export default (app: Application): void => {
+ app.use('/polls/:id/votes/', new Votes());
+ app.service('/polls/:id/votes/').hooks(hooks);
+};
+