diff options
author | eug-vs <eug-vs@keemail.me> | 2021-04-24 20:34:00 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-04-24 20:34:00 +0300 |
commit | 593159c22c2acad599b67d1b128a52232b79a34b (patch) | |
tree | 02363af7bf3b8919260b70ca6e6415169c0879d2 /src/services/accounts.service.ts | |
parent | 874b97bc01b691d7a4553c0ffb337bfaa003d1ff (diff) | |
download | commercel-api-593159c22c2acad599b67d1b128a52232b79a34b.tar.gz |
feat: add accounts service
Diffstat (limited to 'src/services/accounts.service.ts')
-rw-r--r-- | src/services/accounts.service.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/services/accounts.service.ts b/src/services/accounts.service.ts new file mode 100644 index 0000000..cf22a9b --- /dev/null +++ b/src/services/accounts.service.ts @@ -0,0 +1,10 @@ +import { Application } from '@feathersjs/express'; +import service from 'feathers-mongoose'; +import Model from '../models/account/account.model'; + +const Accounts = service({ Model, whitelist: ['$options', '$regex'] }); + +export default (app: Application): void => { + app.use('/accounts', Accounts); +}; + |