Skip to content

Commit 5e1e9a2

Browse files
committed
removed unnessary route and fix route issue
1 parent 003d000 commit 5e1e9a2

File tree

2 files changed

+2
-43
lines changed

2 files changed

+2
-43
lines changed

app/api/leetcode/route.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const transformLeetCodeData = (stats: any) => {
7070
};
7171

7272
// API POST Handler
73-
export async function POST(req: NextRequest, res: NextResponse) {
73+
export async function POST(req: NextRequest) {
7474
const searchParams = req.nextUrl.searchParams;
7575
const username = searchParams.get('username');
7676
const id = searchParams.get('id');
@@ -89,5 +89,5 @@ export async function POST(req: NextRequest, res: NextResponse) {
8989

9090
await storeUserStats(id, transformedStats);
9191

92-
return NextResponse.json({ message: "Success", stats:transformedStats });
92+
return NextResponse.json({ message: "Success", stats: transformedStats });
9393
}

app/api/storeUserStats/route.ts

-41
This file was deleted.

0 commit comments

Comments
 (0)