Skip to content

Commit 6f76bde

Browse files
authored
Update plugin.md
in this example prefix has not been destructured, so I believe we need to access it from config. ... or I missed smth(?)
1 parent 79d2e48 commit 6f76bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/concept/plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const plugin = (config) => new Elysia({
9999
name: 'my-plugin',
100100
seed: config
101101
})
102-
.get(`/${prefix}/hi`, () => 'Hi')
102+
.get(`/${config.prefix}/hi`, () => 'Hi')
103103

104104
const app = new Elysia()
105105
.use(plugin({

0 commit comments

Comments
 (0)