summaryrefslogtreecommitdiff
path: root/src/services/contractors.service.ts
blob: a5b3f59b908db94b5ae6232b27fb50139e23ad8e (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 });

export default (app: Application): void => {
  app.use('/contractors', contractors);
};