blob: cb40c1adedddb47ff1615fba34ab9dc87abda413 (
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);
};
|