feat: open page api
This commit is contained in:
12
apps/openpage-api/app/github/forks/route.ts
Normal file
12
apps/openpage-api/app/github/forks/route.ts
Normal 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,
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user