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

@@ -19,7 +19,7 @@ module.exports = {
AppInit : initEvents, /// Dummy App Init
hooks : {
before: {
/**Array of middleware functions*/
/**Array of middleware functions or objects lile { endpoint, middleware }*/
all : [],
del : [],
get : [ test ],
@@ -29,17 +29,7 @@ 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 : [],
del : [],
get : [],