Initial commit: AutoJobs MVP - AI job application platform

This commit is contained in:
2026-04-13 18:39:26 +02:00
commit 8d1845c874
16 changed files with 3483 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { NextRequest, NextResponse } from "next/server"
import { cookies } from "next/headers"
export async function POST(req: NextRequest) {
const { email } = await req.json()
const cookieStore = await cookies()
cookieStore.set("autojobs_user", email.split("@")[0], {
httpOnly: true,
secure: process.env.NODE_ENV === "production",
sameSite: "lax",
maxAge: 60 * 60 * 24 * 30
})
return NextResponse.json({ status: "ok" })
}