import { d as getRequestId, h as invalidateSession } from './helpers-kzwksNq1.js';
import { S as SESSION_COOKIE_NAME, c as clearSessionCookieHeader } from './session-cookie-CHgIES2p.js';
import './src-CidJbygh.js';
import './chunk-CLZ62Ad-.js';
import 'node:module';
import './provider-constants-DPrj3yBX.js';
import './dist-DOFcG0Zp.js';
import 'node:fs';
import 'node:path';
import 'buffer';
import 'fs';
import 'path';
import 'node:child_process';
import 'node:url';
import 'node:crypto';
import 'events';
import 'node:events';
import 'node:stream';
import 'node:string_decoder';
import 'assert';
import 'zlib';
import 'node:assert';
import 'node:fs/promises';
import 'node:os';
import './endpoints-UdQGgKsR.js';
import './state-fxN45gBp.js';

//#region src/routes/admin/auth/logout/+server.ts
var POST = async (event) => {
	const requestId = getRequestId(event);
	const match = (event.request.headers.get("cookie") ?? "").match(new RegExp(`(?:^|;\\s*)${SESSION_COOKIE_NAME}=([^;]+)`));
	if (match) invalidateSession(match[1]);
	return new Response(JSON.stringify({ ok: true }), {
		status: 200,
		headers: {
			"content-type": "application/json",
			"set-cookie": clearSessionCookieHeader(event.request),
			"x-request-id": requestId
		}
	});
};

export { POST };
//# sourceMappingURL=_server.ts-BDu6FWnC.js.map
