Nuxt 3 app with: - SQLite (better-sqlite3) for persistence - Anonymous idea submission and voting - Admin auth with session cookies - AI analysis via Gemini API - Nuxt UI components + Tailwind Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9 lines
250 B
TypeScript
9 lines
250 B
TypeScript
import { destroySession } from '../../utils/auth'
|
|
|
|
export default defineEventHandler((event) => {
|
|
const token = getCookie(event, 'session')
|
|
if (token) destroySession(token)
|
|
deleteCookie(event, 'session', { path: '/' })
|
|
return { ok: true }
|
|
})
|