forked from Human-Connection/API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.hooks.js
More file actions
45 lines (42 loc) · 671 Bytes
/
app.hooks.js
File metadata and controls
45 lines (42 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Application hooks that run for every service
// const logger = require('./hooks/logger');
const { discard } = require('feathers-hooks-common');
module.exports = {
before: {
all: [],
find: [],
get: [],
create: [
discard('_id', '__v')
],
update: [
discard('_id', '__v')
],
patch: [
discard('_id', '__v')
],
remove: []
},
after: {
all: [
// logger()
],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
},
error: {
all: [
// logger()
],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
}
};