import type { Env } from 'wildebeest/backend/src/types/env' import { cors } from 'wildebeest/backend/src/utils/cors' import { WILDEBEEST_VERSION } from 'wildebeest/config/versions' const headers = { ...cors(), 'content-type': 'application/json', 'cache-control': 'max-age=259200, public', } export const onRequest: PagesFunction = async () => { return handleRequest() } export async function handleRequest(): Promise { const res = { version: '2.1', software: { name: 'wildebeest', version: WILDEBEEST_VERSION, repository: 'https://github.com/cloudflare/wildebeest', }, protocols: ['activitypub'], services: { outbound: [], inbound: [] }, usage: { users: {} }, openRegistrations: false, metadata: {}, } return new Response(JSON.stringify(res), { headers }) }