ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto
17
fork

Configure Feed

Select the types of activity you want to include in your feed.

at aacbbaa27797781098dacdfd0194c93cd71d7bd2 23 lines 601 B view raw
1import { Handler } from "@netlify/functions"; 2import { CONFIG } from "./core/config/constants"; 3 4const PUBLIC_JWK = { 5 kty: "EC", 6 x: "3sVbr4xwN7UtmG1L19vL0x9iN-FRcl7p-Wja_xPbhhk", 7 y: "Y1XKDaAyDwijp8aEIGHmO46huKjajSQH2cbfpWaWpQ4", 8 crv: "P-256", 9 kid: CONFIG.OAUTH_KEY_ID, 10 use: "sig", 11 alg: "ES256", 12}; 13export const handler: Handler = async () => { 14 return { 15 statusCode: 200, 16 headers: { 17 "Content-Type": "application/json", 18 "Access-Control-Allow-Origin": "*", 19 "Cache-Control": "public, max-age=3600", 20 }, 21 body: JSON.stringify({ keys: [PUBLIC_JWK] }), 22 }; 23};