Files
Mangarr/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/DownloadCbzResource.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

27 lines
595 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\DownloadCbzProvider;
#[ApiResource(
shortName: 'Cbz',
operations: [
new Get(
uriTemplate: '/manga/chapters/{id}/download',
provider: DownloadCbzProvider::class,
output: false,
name: 'download_chapter_cbz'
)
]
)]
class DownloadCbzResource
{
public function __construct(
public string $id
) {
}
}