Skip to content

Commit

Permalink
指定するpathを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nose221834 committed Nov 16, 2024
1 parent 9b12a11 commit a8223e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/src/app/api/minio/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ export async function POST(req: NextRequest) {
assignmentId: assignmentId,
};

revalidatePath("/api/score/week");
revalidatePath("/api/score/month");
revalidatePath("/ranking");

return new Response(JSON.stringify(response), {
status: 200,
Expand Down
2 changes: 1 addition & 1 deletion app/src/app/api/user/rename/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function PUT(req: NextRequest) {
data: { name : name },
});

revalidatePath("/api/user");
revalidatePath("/ranking");

return NextResponse.json({ putName }, { status: 200 });
} catch (error) {
Expand Down

0 comments on commit a8223e5

Please sign in to comment.