Skip to content

Commit 31f754f

Browse files
authored
chore(function): fix code snippet at set-up-function page (#8046)
* Add `.authorization(allow => [allow.guest()])`
1 parent 6adb667 commit 31f754f

File tree

1 file changed

+1
-0
lines changed
  • src/pages/[platform]/build-a-backend/functions/set-up-function

1 file changed

+1
-0
lines changed

src/pages/[platform]/build-a-backend/functions/set-up-function/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const schema = a.schema({
9292
name: a.string(),
9393
})
9494
.returns(a.string())
95+
.authorization(allow => [allow.guest()])
9596
.handler(a.handler.function(sayHello)),
9697
// highlight-end
9798
})

0 commit comments

Comments
 (0)