Prepare Kalendartool for MPM and disable invites

This commit is contained in:
Kühn
2026-10-08 15:06:22 +02:00
parent bc49c3074e
commit 556202575e
50 changed files with 905 additions and 836 deletions

View File

@@ -1,6 +1,7 @@
'use client';
/** Logout-Button: beendet die Session per API und laedt neu. */
import { appFetch } from '@/lib/client-fetch';
import { useRouter } from 'next/navigation';
import { Button } from '@/components/ui/ui';
@@ -8,7 +9,7 @@ export function LogoutButton() {
const router = useRouter();
async function logout() {
await fetch('/api/auth/logout', { method: 'POST' });
await appFetch('/api/auth/logout', { method: 'POST' });
router.push('/login');
router.refresh();
}