@dnax/core 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/hono.ts +11 -9
- package/package.json +1 -1
package/app/hono.ts
CHANGED
|
@@ -127,15 +127,17 @@ function HonoInstance(): typeof app {
|
|
|
127
127
|
let nextLifecyle: any = false;
|
|
128
128
|
|
|
129
129
|
// Middleware for apis
|
|
130
|
-
|
|
131
|
-
await midd
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
130
|
+
if (col?.middlewares?.length) {
|
|
131
|
+
for await (let midd of col?.middlewares) {
|
|
132
|
+
await midd({
|
|
133
|
+
token: c.var["token"] || null,
|
|
134
|
+
action: action,
|
|
135
|
+
c: c,
|
|
136
|
+
isAuth: c.var?._v?.isAuth || false,
|
|
137
|
+
rest: new useRest({ tenant_id: tenant_id }),
|
|
138
|
+
session: session as any,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
if (col && col?.access?.beforeAction) {
|