feat: open page api

This commit is contained in:
Ephraim Atta-Duncan
2024-10-23 17:33:16 +00:00
parent b8310237e4
commit 68c8f098b6
15 changed files with 281 additions and 36 deletions

View File

@@ -0,0 +1,12 @@
import { NextResponse } from 'next/server';
import { requestHandler } from '@/app/request-handler';
export const GET = requestHandler(async () => {
const res = await fetch('https://api.github.com/repos/documenso/documenso');
const { forks_count } = await res.json();
return NextResponse.json({
data: forks_count,
});
});