aboutsummaryrefslogtreecommitdiff
path: root/services/feedback/feedback.hooks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/feedback/feedback.hooks.ts')
-rw-r--r--services/feedback/feedback.hooks.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/feedback/feedback.hooks.ts b/services/feedback/feedback.hooks.ts
new file mode 100644
index 0000000..04f3af1
--- /dev/null
+++ b/services/feedback/feedback.hooks.ts
@@ -0,0 +1,10 @@
+import { HookContext } from '@feathersjs/feathers';
+import requireAuth from '../../hooks/requireAuth';
+import signAuthority from '../../hooks/signAuthority';
+
+export default {
+ before: {
+ create: [requireAuth, signAuthority]
+ }
+};
+