aboutsummaryrefslogtreecommitdiff
path: root/services/feedback/feedback.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/feedback/feedback.service.ts')
-rw-r--r--services/feedback/feedback.service.ts13
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);
+};
+