fix(v2): Remove custom hooks; fix(v1): Remove company from JWT context gen

This commit is contained in:
Josepablo C
2024-08-14 10:14:25 -06:00
parent 41ae6354fa
commit 55f155af03
6 changed files with 53 additions and 55 deletions

View File

@@ -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 : []
}
},
}
};