aboutsummaryrefslogtreecommitdiff
path: root/services/polls/polls.service.ts
blob: ca75d5a67f570def5e64eb220d71a4bc09408fc9 (plain)
1
2
3
4
5
6
7
8
9
10
import { Application } from '@feathersjs/express';
import Model from '../../models/polls/poll.model';
import service from 'feathers-mongoose';

const PollService = service({ Model });

export default (app: Application): void => {
  app.use('/polls', PollService);
};