From 3a2cdd13b0374aab279b8dd819b03f82013cb026 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 13:31:45 +0300 Subject: feat: add Waybills service --- src/services/waybills.service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/services/waybills.service.ts (limited to 'src/services/waybills.service.ts') diff --git a/src/services/waybills.service.ts b/src/services/waybills.service.ts new file mode 100644 index 0000000..7aea1e3 --- /dev/null +++ b/src/services/waybills.service.ts @@ -0,0 +1,10 @@ +import { Application } from '@feathersjs/express'; +import service from 'feathers-mongoose'; +import Model from '../models/waybill/waybill.model'; + +const waybills = service({ Model }); + +export default (app: Application): void => { + app.use('/waybills', waybills); +}; + -- cgit v1.2.3