Löschen implementiert
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m16s
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:
14
Program.cs
14
Program.cs
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user