mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 14:19:11 +03:00
add default curl data
This commit is contained in:
1 parent
3dbfa57547
commit
f952bb96ad
2 files changed
+6
-4
No files matched your search
@@ -108,14 +108,15 @@ const PageLayout: NextPageWithLayout = () => {
|
||||
{
|
||||
command: `curl -L -X POST 'https://${ref}.functions.supabase.co/${
|
||||
selectedFunction?.slug
|
||||
}' -H 'Authorization: Bearer ${anonKey ?? '[YOUR ANON KEY]'}'`,
|
||||
}' -H 'Authorization: Bearer ${anonKey ?? '[YOUR ANON KEY]'}'
|
||||
--data '{"name":"Functions"}`,
|
||||
description: 'Invokes the hello function',
|
||||
jsx: () => {
|
||||
return (
|
||||
<>
|
||||
<span className="text-brand-1100">curl</span> -L -X POST 'https://{ref}
|
||||
.functions.supabase.co/{selectedFunction?.slug}' -H 'Authorization: Bearer [YOUR ANON
|
||||
KEY]'
|
||||
KEY]' {`--data '{"name":"Functions"}`}
|
||||
</>
|
||||
)
|
||||
},
|
||||
|
||||
@@ -103,13 +103,14 @@ const EmptyFunctions = () => {
|
||||
{
|
||||
command: `curl -L -X POST 'https://${ref}.functions.supabase.co/hello' -H 'Authorization: Bearer ${
|
||||
anonKey ?? '[YOUR ANON KEY]'
|
||||
}'`,
|
||||
}' --data '{"name":"Functions"}`,
|
||||
description: 'Invokes the hello function',
|
||||
jsx: () => {
|
||||
return (
|
||||
<>
|
||||
<span className="text-brand-1100">curl</span> -L -X POST 'https://{ref}
|
||||
.functions.supabase.co/hello' -H 'Authorization: Bearer [YOUR ANON KEY]'
|
||||
.functions.supabase.co/hello' -H 'Authorization: Bearer [YOUR ANON KEY]'{' '}
|
||||
{`--data '{"name":"Functions"}`}
|
||||
</>
|
||||
)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user