From fff350108aab8505f8ebff04184fbd78d4b3fbc9 Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Tue, 5 Mar 2024 17:36:14 +0100 Subject: [PATCH] posting order --- src/ApiResource/PostingApi.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ApiResource/PostingApi.php b/src/ApiResource/PostingApi.php index 55d7263..73c84d4 100644 --- a/src/ApiResource/PostingApi.php +++ b/src/ApiResource/PostingApi.php @@ -46,6 +46,7 @@ use Symfony\Component\Validator\Constraints\NotBlank; security: 'is_granted("ROLE_ADMIN")', ) ], + order: ['createdAt' => 'DESC'], security: 'is_granted("ROLE_USER")', provider: EntityToDtoStateProvider::class, processor: EntityClassDtoStateProcessor::class,