Trouve-KA — moteur de recherche web indépendant, Québec-first. Crawler distribué, index OpenSearch, ranking bilingue, galerie d'images. En prod : www.trouve-ka.com
Python 51.9%
TypeScript 32.7%
JavaScript 4.8%
CSS 4.1%
Shell 2.9%
HTML 1.8%
SQL 1.5%
1// Auteur : Simon-Pierre Boucher — contact@spboucher.ai2// Déconnexion : efface le cookie de session local (la session est sans3// stockage serveur — supprimer le cookie suffit). POST seulement.4import { NextResponse } from "next/server";5import { KA_BASE_URL, SESSION_COOKIE } from "@/lib/ka-auth";67export function POST() {8 const res = NextResponse.json({ ok: true });9 res.cookies.set(SESSION_COOKIE, "", {10 httpOnly: true,11 secure: KA_BASE_URL.startsWith("https"),12 sameSite: "lax",13 path: "/",14 maxAge: 0,15 });16 return res;17}18