SPB Git

spb/chat-spboucher Public

Private universal chat interface over the OpenRouter ecosystem — 400+ models, branching, streaming, usage tracking. Next.js 16 + SQLite, PWA, deployed on m4m64a at chat.spboucher.ai

TypeScript 78.8% CSS 15.1% JavaScript 4.9% Shell 1.2%
574 B · 21 lines typescript
Raw Blame History
1// Author: Simon-Pierre Boucher2// Contact: contact@spboucher.ai3// Project: chat.spboucher.ai45import { NextResponse } from "next/server";6import { cookies } from "next/headers";7import { destroySession, SESSION_COOKIE } from "@/lib/auth/auth";89export const runtime = "nodejs";1011export async function POST() {12  const jar = await cookies();13  destroySession(jar.get(SESSION_COOKIE)?.value);14  const res = NextResponse.json({ ok: true });15  res.headers.set(16    "Set-Cookie",17    `${SESSION_COOKIE}=; Path=/; HttpOnly; Secure; SameSite=Lax; Max-Age=0`18  );19  return res;20}21