rhonojs 0.1.0 → 0.1.1
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/package.json +1 -1
- package/server/app/index.js +5 -1
package/package.json
CHANGED
package/server/app/index.js
CHANGED
|
@@ -127,7 +127,11 @@ export async function app__attach(app) {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
for (const middleware of middleware_a1) {
|
|
130
|
-
|
|
130
|
+
if (middleware instanceof Hono) {
|
|
131
|
+
app.route('/', middleware)
|
|
132
|
+
} else {
|
|
133
|
+
app.use(middleware)
|
|
134
|
+
}
|
|
131
135
|
}
|
|
132
136
|
app$.set(app)
|
|
133
137
|
}).catch(err=>{
|