add default curl data

This commit is contained in:
Inian committed 2022-03-31 20:46:46 +05:30
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"}`}
</>
)
},