first version

This commit is contained in:
2025-09-17 16:43:44 -05:00
parent 810fad4beb
commit 6d12e7e151
28 changed files with 939 additions and 153 deletions

9
app/api/auth/route.ts Normal file
View File

@@ -0,0 +1,9 @@
import { NextRequest, NextResponse } from 'next/server';
export async function POST(req: NextRequest) {
const { password } = await req.json();
if (password === process.env.APP_PASSWORD) {
return NextResponse.json({ success: true });
}
return NextResponse.json({ error: 'Invalid password' }, { status: 401 });
}