aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/app.hooks.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.hooks.js')
-rw-r--r--src/app.hooks.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/app.hooks.js b/src/app.hooks.js
new file mode 100644
index 0000000..20ce4bf
--- /dev/null
+++ b/src/app.hooks.js
@@ -0,0 +1,34 @@
+// Application hooks that run for every service
+const log = require('./hooks/log');
+
+module.exports = {
+ before: {
+ all: [ log() ],
+ find: [],
+ get: [],
+ create: [],
+ update: [],
+ patch: [],
+ remove: []
+ },
+
+ after: {
+ all: [ log() ],
+ find: [],
+ get: [],
+ create: [],
+ update: [],
+ patch: [],
+ remove: []
+ },
+
+ error: {
+ all: [ log() ],
+ find: [],
+ get: [],
+ create: [],
+ update: [],
+ patch: [],
+ remove: []
+ }
+};