blob: 9635adf7a1dad1bc6657fc8be00e68de748818be (
plain)
1
2
3
4
5
6
7
8
9
10
11
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);
};
|