diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-14 13:31:45 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-14 13:31:45 +0300 |
commit | 3a2cdd13b0374aab279b8dd819b03f82013cb026 (patch) | |
tree | ede046b9c7a0612379b6ac8395ca41f47f7bad5b /src/services/waybills.service.ts | |
parent | ac9698ea0de17ab2d1fbfafead0f33295a402e28 (diff) | |
download | commercel-api-3a2cdd13b0374aab279b8dd819b03f82013cb026.tar.gz |
feat: add Waybills service
Diffstat (limited to 'src/services/waybills.service.ts')
-rw-r--r-- | src/services/waybills.service.ts | 10 |
1 files changed, 10 insertions, 0 deletions
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); +}; + |