index.ts14 lines · main
1// Follow this setup guide to integrate the Deno language server with your editor:
2// https://deno.land/manual/getting_started/setup_your_environment
3// This enables autocomplete, go to definition, etc.
4
5Deno.serve(async () => {
6 return new Response(
7 `"Hello from Edge Functions!"`,
8 { headers: { "Content-Type": "application/json" } },
9 )
10})
11
12// To invoke:
13// curl 'http://localhost:<KONG_HTTP_PORT>/functions/v1/hello' \
14// --header 'Authorization: Bearer <anon/service_role API key>'