forked from feathers-plus/cli-generator-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.hooks.js
More file actions
executable file
·57 lines (50 loc) · 1014 Bytes
/
Copy pathapp.hooks.js
File metadata and controls
executable file
·57 lines (50 loc) · 1014 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
46
47
48
49
50
51
52
53
54
55
56
57
// Application hooks that run for every service. (Can be re-generated.)
const commonHooks = require('feathers-hooks-common');
// !<DEFAULT> code: imports
const logger = require('./hooks/logger');
// !end
// !<DEFAULT> code: used
// eslint-disable-next-line no-unused-vars
const { iff } = commonHooks;
// !end
// !code: init // !end
let moduleExports = {
before: {
// !<DEFAULT> code: before
all: [ logger() ],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
// !end
},
after: {
// !<DEFAULT> code: after
all: [ logger() ],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
// !end
},
error: {
// !<DEFAULT> code: error
all: [ logger() ],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
// !end
},
// !code: moduleExports // !end
};
// !code: exports // !end
module.exports = moduleExports;
// !code: funcs // !end
// !code: end // !end