foamking/app/api/auth/logout/route.ts
mikl0s 90407c4f8d refactor: simplify auth routes, remove setup endpoint
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:51:04 +00:00

11 lines
283 B
TypeScript

import { NextResponse } from "next/server"
import { logout } from "@/lib/auth"
export async function POST() {
try {
await logout()
return NextResponse.json({ success: true })
} catch {
return NextResponse.json({ error: "Der opstod en fejl" }, { status: 500 })
}
}