fix: delete manga
All checks were successful
Build and Deploy / deploy (push) Successful in 1m2s

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2026-02-11 16:27:11 +01:00
parent f75b535426
commit b5a832fbbc
2 changed files with 41 additions and 1 deletions

View File

@@ -5,15 +5,16 @@ namespace App\Domain\Manga\Infrastructure\ApiPlatform\Resource;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Delete;
use App\Domain\Manga\Infrastructure\ApiPlatform\State\Processor\DeleteMangaProcessor;
use App\Domain\Manga\Infrastructure\ApiPlatform\State\Provider\DeleteMangaProvider;
#[ApiResource(
shortName: 'Manga',
operations: [
new Delete(
uriTemplate: '/mangas/{id}',
provider: DeleteMangaProvider::class,
processor: DeleteMangaProcessor::class,
name: 'delete_manga',
read: false,
openapiContext: [
'summary' => 'Delete a manga',
'description' => 'Permanently deletes a manga and all its associated chapters',