Files
Mangarr/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/DownloadVolumeResource.php
ext.jeremy.guillot@maxicoffee.domains 7506a7a3c1 style: apply php-cs-fixer formatting (PSR-12)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 20:46:59 +01:00

28 lines
642 B
PHP

<?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
) {
}
}