fix build errors

This commit is contained in:
2025-08-11 02:04:12 +02:00
parent 6cec9f506a
commit 48ca910f83
4 changed files with 13 additions and 16 deletions

View File

@@ -6,10 +6,7 @@ export async function POST(req: NextRequest) {
const { password } = await req.json();
if (password !== process.env.PASSWORD) {
return NextResponse.json(
{ error: "Invalid password" },
{ status: 401 }
);
return NextResponse.json({ error: "Invalid password" }, { status: 401 });
}
const session = await getSession();
@@ -18,6 +15,7 @@ export async function POST(req: NextRequest) {
return NextResponse.json({ success: true });
} catch (error) {
console.error(error);
return NextResponse.json(
{ error: "Authentication failed" },
{ status: 500 }