mirror of
				https://github.com/D4M13N-D3V/neroshitron.git
				synced 2025-10-30 17:15:35 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			563 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			563 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| // 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>'
 |