summaryrefslogtreecommitdiff
path: root/src/services/products
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/products')
-rw-r--r--src/services/products/products.service.ts10
1 files changed, 10 insertions, 0 deletions
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);
+};
+