aboutsummaryrefslogtreecommitdiff
path: root/services/votes/votes.service.ts
blob: 3947d9bd1e71e3f34406f4301fb439e10b9c7800 (plain)
1
2
3
4
5
6
7
8
9
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);
};