From 1b86dcef9fd537db800e0df2c2f3889ffbc69723 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 06:44:05 +0300 Subject: feat: add products service --- src/services/products/products.service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/services/products/products.service.ts (limited to 'src/services/products/products.service.ts') diff --git a/src/services/products/products.service.ts b/src/services/products/products.service.ts new file mode 100644 index 0000000..6461dae --- /dev/null +++ b/src/services/products/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); +}; + -- cgit v1.2.3