import { serve } from "https://deno.land/std@0.131.0/http/server.ts";
import fetch from "../../../node_modules/node-fetch";
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" } },
)
})
import { serve } from "https://deno.land/std@0.131.0/http/server.ts";
import fetch from "../../../node_modules/node-fetch";
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" } },
)
})