Skip to content

Commit 6139cdb

Browse files
committed
📘 doc(docs): hook type
1 parent bd34466 commit 6139cdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/essential/life-cycle.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ const current = new Elysia()
234234
.onBeforeHandle({ as: type }, () => {
235235
console.log('hi')
236236
})
237-
.get('/child', () => 'hello')
237+
.use(child)
238+
.get('/current', () => 'hello')
238239

239240
const parent = new Elysia()
240241
.use(current)

0 commit comments

Comments
 (0)