23 lines
590 B
PHP
23 lines
590 B
PHP
<?php
|
|
|
|
namespace App\Domain\Manga\Infrastructure\ApiPlatform\Resource;
|
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\Get;
|
|
use App\Domain\Manga\Infrastructure\ApiPlatform\Dto\MangaSearchCollection;
|
|
use App\Domain\Manga\Infrastructure\ApiPlatform\State\Provider\DiscoverMangaStateProvider;
|
|
|
|
#[ApiResource(
|
|
shortName: 'MangaDiscover',
|
|
operations: [
|
|
new Get(
|
|
uriTemplate: '/manga-discover',
|
|
output: MangaSearchCollection::class,
|
|
provider: DiscoverMangaStateProvider::class
|
|
)
|
|
]
|
|
)]
|
|
class MangaDiscoverResource
|
|
{
|
|
}
|