export function onRequest(context) { return new Response( JSON.stringify({ "@context": ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1" ], "type": "Person", "manuallyApprovesFollowers": true, "id": "https://ewpratten.com/api/activitypub/users/evan", "outbox": "https://ewpratten.com/api/activitypub/inbox", "outbox": "https://ewpratten.com/api/activitypub/outbox", "preferredUsername": "evan", "name": "Evan Pratten", "summary": "", "icon": [ "https://ewpratten.com/images/pfp/2022/460x460.webp" ], "publicKey": { "@type": "Key", "id": "https://ewpratten.com/api/activitypub/users/evan#main-key", "owner": "https://ewpratten.com/api/activitypub/users/evan", "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJwe4jxrpiDx0vzqnoc+3Mja7X\nz73/NxfDqG9Mu+k6Vs87N/+kV4BbsbJ/vtdYAg58+iMDmyRw48CzaXkPDgiCh3RZ\nFc/8GniBSEucjt/QEiAitV48aykqWyXtln0hAmQrjoEeE9DRxS3eyF7FVE2GhkTz\n1YqBabOMpHA1uGOp7QIDAQAB\n-----END PUBLIC KEY-----" } }), { headers: { "Content-Type": "application/activity+json", }, } ) }