feat : ajout de l'export récap congés et RTT
This commit is contained in:
20
src/ApiResource/LeaveRecapPrint.php
Normal file
20
src/ApiResource/LeaveRecapPrint.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\ApiResource;
|
||||
|
||||
use ApiPlatform\Metadata\ApiResource;
|
||||
use ApiPlatform\Metadata\Get;
|
||||
use App\State\LeaveRecapPrintProvider;
|
||||
|
||||
#[ApiResource(
|
||||
operations: [
|
||||
new Get(
|
||||
uriTemplate: '/leave-recap/print',
|
||||
provider: LeaveRecapPrintProvider::class,
|
||||
security: "is_granted('ROLE_ADMIN')"
|
||||
),
|
||||
]
|
||||
)]
|
||||
final class LeaveRecapPrint {}
|
||||
Reference in New Issue
Block a user