From 4909dda29566710793b8445ab4426102ca4a0324 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 22 Jun 2020 01:42:43 +0300 Subject: feat: create Votes service --- services/votes/votes.service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 services/votes/votes.service.ts (limited to 'services/votes/votes.service.ts') 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); +}; + -- cgit v1.2.3