summaryrefslogtreecommitdiff
path: root/src/services/contractors.service.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-14 07:06:18 +0300
committereug-vs <eug-vs@keemail.me>2021-03-14 07:06:18 +0300
commitac9698ea0de17ab2d1fbfafead0f33295a402e28 (patch)
tree839767b2c34b5be47223274bf47ee1aa42c83cd8 /src/services/contractors.service.ts
parent1b86dcef9fd537db800e0df2c2f3889ffbc69723 (diff)
downloadcommercel-api-ac9698ea0de17ab2d1fbfafead0f33295a402e28.tar.gz
feat: add Contractors service
Diffstat (limited to 'src/services/contractors.service.ts')
-rw-r--r--src/services/contractors.service.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/services/contractors.service.ts b/src/services/contractors.service.ts
new file mode 100644
index 0000000..a5b3f59
--- /dev/null
+++ b/src/services/contractors.service.ts
@@ -0,0 +1,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);
+};
+