backend und frontent optimiert

This commit is contained in:
titver968
2025-04-16 14:34:11 +02:00
parent 5177bce04c
commit 5e7c0600a8
6 changed files with 48 additions and 31 deletions

View File

@@ -56,6 +56,14 @@
<button on:click={() => loeschen(d.id)} class="text-sm text-red-600 hover:underline">Löschen</button>
</li>
{/each}
</ul>
<button
on:click={async () => {
await fetch('/api/admin/logout', { method: 'POST' });
location.reload();
}}
class="bg-red-600 text-white px-4 py-3 rounded text-center hiver:bg-red-700">
Logout
</button>
</div>