diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-28 19:01:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-28 19:01:52 +0300 |
commit | 88e97a42096c1e4de7b9f1d8fefa0829bbc0d321 (patch) | |
tree | ae402f77d0d0d7b8d06dcefc614bbb9aad12ed59 /services/feedback/feedback.service.ts | |
parent | 8baf96be5ea7880cebe3aeda733b9196950be434 (diff) | |
parent | 29197dd3bc7e941707979b6c226e5f3b1a4cbbed (diff) | |
download | which-api-88e97a42096c1e4de7b9f1d8fefa0829bbc0d321.tar.gz |
Merge pull request #16 from which-ecosystem/feedback
Feedback endpoint & schema updates
Diffstat (limited to 'services/feedback/feedback.service.ts')
-rw-r--r-- | services/feedback/feedback.service.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/services/feedback/feedback.service.ts b/services/feedback/feedback.service.ts new file mode 100644 index 0000000..a15ede9 --- /dev/null +++ b/services/feedback/feedback.service.ts @@ -0,0 +1,13 @@ +import { Application } from '@feathersjs/express'; +import service from 'feathers-mongoose'; +import Model from '../../models/feedback/feedback.model'; + +import hooks from './feedback.hooks'; + +const FeebackService = service({ Model }); + +export default (app: Application): void => { + app.use('/feedback', FeebackService); + app.service('feedback').hooks(hooks); +}; + |