Files
Mebbling/app/api/auth/logout/route.ts
T

2 lines
243 B
TypeScript
Raw Normal View History

2026-07-19 00:29:30 +08:00
import { NextResponse } from "next/server"; import { clearSession } from "@/lib/auth"; import { externalUrl } from "@/lib/http"; export async function POST(req:Request){await clearSession();return NextResponse.redirect(externalUrl(req,"/"));}