import { NextResponse } from "next/server"; import { clearCurrentCaregiverSession } from "@/lib/session"; export async function POST(request: Request) { await clearCurrentCaregiverSession(); return NextResponse.redirect(new URL("/login", request.url), { status: 303, }); }