summaryrefslogtreecommitdiff
path: root/src/services/products.service.ts
blob: 9934a66c8ea58cc2c7352e8f11a88945adff67e6 (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/product/product.model';

const Products = service({ Model, whitelist: ['$options', '$regex'] });

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