added token validation with input fields

This commit is contained in:
2025-06-18 08:48:53 +02:00
parent 34f8fd5490
commit 3dbaf7a01b
10 changed files with 133 additions and 177 deletions

View File

@@ -172,7 +172,6 @@
>
<div class=" flex gap-x-4">
<Cube />
<button on:click="{() => console.log('test')}">test</button>
<div class="min-w-0 flex-auto">
{#if data?.user?.admin}
<span

View File

@@ -1,11 +1,11 @@
import { client } from '$lib/minio';
import { BUCKET, client } from '$lib/minio';
export async function DELETE({ request }: { request: Request }) {
const url_fragments = request.url.split('/');
const item = url_fragments.at(-1);
const vorgang = url_fragments.at(-2);
await client.removeObject('tatort', `${vorgang}/${item}`);
await client.removeObject(BUCKET, `${vorgang}/${item}`);
return new Response(null, { status: 204 });
}