blob: 1bfc03d90f7acd81cc6b85e65ab7567ba423fee4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import { Application } from '@feathersjs/express';
import service from 'feathers-mongoose';
import Model from '../models/contractor/contractor.model';
const Contractors = service({ Model, whitelist: ['$options', '$regex'] });
export default (app: Application): void => {
app.use('/contractors', Contractors);
};
|