Skip to content

Commit 906a3be

Browse files
authored
Merge pull request #53 from olragon/main
fix: example error
2 parents ea1805c + 68b44c4 commit 906a3be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/plugins/eden/fn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const app = new Elysia()
8181
sum: (a: number, b: number) => a + b,
8282
redis: permission({
8383
value: new Redis(),
84-
allows: ['set']
84+
allow: ['set']
8585
})
8686
})
8787
.listen(8080)
@@ -105,7 +105,7 @@ const app = new Elysia()
105105
sum: (a: number, b: number) => a + b,
106106
redis: permission({
107107
value: new Redis(),
108-
allows: ['set'],
108+
allow: ['set'],
109109
check: ({ key, params, request, match }) => {
110110
if(!request.headers.get('Authorized'))
111111
// This value will be sent to client

0 commit comments

Comments
 (0)