diff --git a/apps/openpage-api/app/community/route.ts b/apps/openpage-api/app/community/route.ts index 8e75178c6..2679c34d0 100644 --- a/apps/openpage-api/app/community/route.ts +++ b/apps/openpage-api/app/community/route.ts @@ -3,7 +3,7 @@ import type { NextRequest } from 'next/server'; import cors from '@/lib/cors'; const paths = [ - { path: '/total-prs', description: 'Total GitHub Forks' }, + { path: '/total-prs', description: 'Total GitHub Merged PRs' }, { path: '/total-stars', description: 'Total GitHub Stars' }, { path: '/total-forks', description: 'Total GitHub Forks' }, { path: '/total-issues', description: 'Total GitHub Issues' }, diff --git a/apps/openpage-api/app/community/total-forks/route.ts b/apps/openpage-api/app/community/total-forks/route.ts index df5297aea..8ed5fd344 100644 --- a/apps/openpage-api/app/community/total-forks/route.ts +++ b/apps/openpage-api/app/community/total-forks/route.ts @@ -8,7 +8,7 @@ export async function GET(request: Request) { return cors( request, - new Response(JSON.stringify({ 'total-forks': transformedData }), { + new Response(JSON.stringify(transformedData), { status: 200, headers: { 'content-type': 'application/json', diff --git a/apps/openpage-api/app/community/total-issues/route.ts b/apps/openpage-api/app/community/total-issues/route.ts index 23f160657..848768d05 100644 --- a/apps/openpage-api/app/community/total-issues/route.ts +++ b/apps/openpage-api/app/community/total-issues/route.ts @@ -8,7 +8,7 @@ export async function GET(request: Request) { return cors( request, - new Response(JSON.stringify({ 'total-issues': transformedData }), { + new Response(JSON.stringify(transformedData), { status: 200, headers: { 'content-type': 'application/json', diff --git a/apps/openpage-api/app/community/total-prs/route.ts b/apps/openpage-api/app/community/total-prs/route.ts index fd30b964e..e5c526f31 100644 --- a/apps/openpage-api/app/community/total-prs/route.ts +++ b/apps/openpage-api/app/community/total-prs/route.ts @@ -8,7 +8,7 @@ export async function GET(request: Request) { return cors( request, - new Response(JSON.stringify({ 'total-stars': transformedData }), { + new Response(JSON.stringify(transformedData), { status: 200, headers: { 'content-type': 'application/json', diff --git a/apps/openpage-api/app/community/total-stars/route.ts b/apps/openpage-api/app/community/total-stars/route.ts index fd30b964e..e5c526f31 100644 --- a/apps/openpage-api/app/community/total-stars/route.ts +++ b/apps/openpage-api/app/community/total-stars/route.ts @@ -8,7 +8,7 @@ export async function GET(request: Request) { return cors( request, - new Response(JSON.stringify({ 'total-stars': transformedData }), { + new Response(JSON.stringify(transformedData), { status: 200, headers: { 'content-type': 'application/json',