1
Fork 0
This repository has been archived on 2024-12-04. You can view files and clone it, but cannot push or open issues or pull requests.
MinPluto-Frontend/.minpluto/docker/supabase/volumes/functions/hello/index.ts
2024-08-03 21:51:57 -04:00

16 lines
563 B
TypeScript
Executable file

// 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>'