import type { APIRoute } from "astro"; import { env } from "../../lib/environment.ts"; const { PUBLIC_SITE_URL } = env; const site = new URL(PUBLIC_SITE_URL); const webfinger = { "subject": "acct:cravodeabril@cravodeabril.pt", "links": [ { "rel": "self", "type": "application/activity+json", "href": new URL("actor.json", site), }, ], }; export const GET: APIRoute = (): Response => { return new Response(JSON.stringify(webfinger), { headers: { "Content-Type": "application/json" }, }); };