Löschen implementiert
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m16s

This commit is contained in:
2026-02-09 20:29:36 +01:00
parent 61ae8e2a3a
commit 3ca683d06f
7 changed files with 89 additions and 2 deletions

View File

@@ -178,5 +178,19 @@ storage.MapGet("/buckets/{bucket}/files/{fileName}/download", async (
});
storage.MapDelete("/buckets/{bucket}/objects/{*key}", async(
IStorageService svc,
IStorageMetadataRepository meta,
string bucket,
string key,
CancellationToken ct) =>
{
await svc.DeleteObjectAsync(bucket, key);
await meta.DeleteByKeyAsync(bucket, key, ct);
return Results.NoContent();
});
app.Run();