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