index.ts 498 B

1234567891011121314
  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. Deno.serve(async () => {
  5. return new Response(
  6. `"Hello from Edge Functions!"`,
  7. { headers: { "Content-Type": "application/json" } },
  8. )
  9. })
  10. // To invoke:
  11. // curl 'http://localhost:<KONG_HTTP_PORT>/functions/v1/hello' \
  12. // --header 'Authorization: Bearer <anon/service_role API key>'