diff options
Diffstat (limited to 'src/services/products.service.ts')
-rw-r--r-- | src/services/products.service.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/services/products.service.ts b/src/services/products.service.ts new file mode 100644 index 0000000..f3ae2b6 --- /dev/null +++ b/src/services/products.service.ts @@ -0,0 +1,10 @@ +import { Application } from '@feathersjs/express'; +import service from 'feathers-mongoose'; +import Model from '../models/product/product.model'; + +const Products = service({ Model }); + +export default (app: Application): void => { + app.use('/products', Products); +}; + |