feat: open page api (#1419)

This commit is contained in:
Ephraim Duncan
2024-12-10 10:19:05 +00:00
committed by GitHub
parent 34c0868d77
commit 9d02ab4a5e
32 changed files with 1026 additions and 40 deletions

View File

@ -0,0 +1,25 @@
import cors from '@/lib/cors';
import { getSignerConversionMonthly } from '@/lib/growth/get-signer-conversion';
export async function GET(request: Request) {
const signers = await getSignerConversionMonthly();
return cors(
request,
new Response(JSON.stringify(signers), {
status: 200,
headers: {
'content-type': 'application/json',
},
}),
);
}
export function OPTIONS(request: Request) {
return cors(
request,
new Response(null, {
status: 204,
}),
);
}