mirror of
https://github.com/supabase/supabase.git
synced 2026-06-20 22:06:04 +08:00
* extend integration test suite and move to v2 * update workflow * change tests to run against cli setup
13 lines
320 B
TypeScript
13 lines
320 B
TypeScript
import { serve } from 'https://deno.land/std@0.131.0/http/server.ts'
|
|
|
|
console.log('Hello from Functions!')
|
|
|
|
serve(async (req) => {
|
|
const { name } = await req.json()
|
|
const data = {
|
|
message: `Hello ${name}!`,
|
|
}
|
|
|
|
return new Response(JSON.stringify(data), { headers: { 'Content-Type': 'application/json' } })
|
|
})
|