blob: a15ede96592f1336e8af36a3d30ef4b82c3135b9 (
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/feedback/feedback.model';
import hooks from './feedback.hooks';
const FeebackService = service({ Model });
export default (app: Application): void => {
app.use('/feedback', FeebackService);
app.service('feedback').hooks(hooks);
};
|