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