blob: 38b701f48985e4f94d9124e387a552f07d928d65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { Application } from '@feathersjs/express';
import service from 'feathers-mongoose';
import Model from '../../models/polls/poll.model';
import hooks from './polls.hooks';
const PollService = service({ Model });
export default (app: Application): void => {
app.use('/polls', PollService);
app.service('polls').hooks(hooks);
};
|