fix(v2): Remove custom hooks; fix(v1): Remove company from JWT context gen
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = {
|
||||
AppInit,
|
||||
hooks : {
|
||||
before: {
|
||||
/**Array of middleware functions*/
|
||||
/**Array of middleware functions or objects lile { endpoint, middleware }*/
|
||||
all : [],
|
||||
del : [],
|
||||
get : [],
|
||||
@@ -26,23 +26,13 @@ module.exports = {
|
||||
},
|
||||
|
||||
after: {
|
||||
/**Array of middleware functions*/
|
||||
all : [],
|
||||
del : [],
|
||||
get : [],
|
||||
patch : [],
|
||||
post : [],
|
||||
put : []
|
||||
},
|
||||
|
||||
custom: {
|
||||
/**Array of objects like { endpoint, middleware }*/
|
||||
/**Array of middleware functions or objects lile { endpoint, middleware }*/
|
||||
all : [ { "/test" : dummy_middleware } ],
|
||||
del : [],
|
||||
get : [],
|
||||
patch : [],
|
||||
post : [],
|
||||
put : []
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user