feat: ajout de la gestion des commandes pour la suppression des fichiers CBZ et des chapitres, avec création des gestionnaires et des ressources API correspondantes
This commit is contained in:
parent
7fe4ac0d3b
commit
37e1b202c2
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Manga\Infrastructure\ApiPlatform\Resource;
|
||||
|
||||
use ApiPlatform\Metadata\ApiResource;
|
||||
use ApiPlatform\Metadata\Get;
|
||||
use App\Domain\Manga\Infrastructure\ApiPlatform\State\Provider\DownloadVolumeProvider;
|
||||
|
||||
#[ApiResource(
|
||||
shortName: 'Cbz',
|
||||
operations: [
|
||||
new Get(
|
||||
uriTemplate: '/mangas/{id}/volumes/{volume}/download',
|
||||
provider: DownloadVolumeProvider::class,
|
||||
output: false,
|
||||
name: 'download_manga_volume'
|
||||
)
|
||||
]
|
||||
)]
|
||||
class DownloadVolumeResource
|
||||
{
|
||||
public function __construct(
|
||||
public string $id,
|
||||
public int $volume
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user