Going from down to up, we are stopping at prettierrc as far as making sure we have everything configured.
This commit is contained in:
15
scripts/supabase/docker/volumes/functions/hello/index.ts
Normal file
15
scripts/supabase/docker/volumes/functions/hello/index.ts
Normal file
@ -0,0 +1,15 @@
|
||||
// Follow this setup guide to integrate the Deno language server with your editor:
|
||||
// https://deno.land/manual/getting_started/setup_your_environment
|
||||
// This enables autocomplete, go to definition, etc.
|
||||
|
||||
import { serve } from 'https://deno.land/std@0.177.1/http/server.ts';
|
||||
|
||||
serve(async () => {
|
||||
return new Response(`"Hello from Edge Functions!"`, {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
});
|
||||
});
|
||||
|
||||
// To invoke:
|
||||
// curl 'http://localhost:<KONG_HTTP_PORT>/functions/v1/hello' \
|
||||
// --header 'Authorization: Bearer <anon/service_role API key>'
|
Reference in New Issue
Block a user