Skip to content

Commit a3ec2a9

Browse files
authored
Fix getAppInfo for H3 (#183)
1 parent 77ca0b9 commit a3ec2a9

File tree

4 files changed

+14
-62
lines changed

4 files changed

+14
-62
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
7070
- fastify@5 fastify-plugin@5
7171
- fastify@4 fastify-plugin@4
72-
- [email protected].0-beta.5
72+
7373
7474
7575

package-lock.json

Lines changed: 11 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
"fastify": "^5.0.0",
303303
"fastify-plugin": "^5.0.1",
304304
"globals": "^16.2.0",
305-
"h3": "2.0.0-rc.1",
305+
"h3": "2.0.1-rc.5",
306306
"hono": "^4.6.5",
307307
"koa": "^3.0.0",
308308
"koa-bodyparser": "^4.4.1",

src/h3/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function getAppInfo(h3: H3Core, appVersion?: string) {
2323
}
2424

2525
return {
26-
paths: h3._routes
26+
paths: h3["~routes"]
2727
.map((route) => ({
2828
method: route.method || "",
2929
path: route.route || "",

0 commit comments

Comments
 (0)