Expand the calculator with a multi-step wizard flow, admin dashboard with quote tracking, login/auth system, distance API integration, and history page. Add new UI components (dialog, progress, select, slider, switch), update pricing logic, and improve the overall design with new assets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
333 B
TypeScript
12 lines
333 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 (error) {
|
|
console.error("Logout error:", error)
|
|
return NextResponse.json({ error: "Der opstod en fejl" }, { status: 500 })
|
|
}
|
|
}
|