Skip to content

Commit af52794

Browse files
committed
Allow ordering my created date
1 parent 34137f6 commit af52794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/Core/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
mercure: true,
5959
provider: RouteStateProvider::class
6060
)]
61-
#[ApiFilter(OrderFilter::class, properties: ['path'], arguments: ['orderParameterName' => 'order'])]
61+
#[ApiFilter(OrderFilter::class, properties: ['createdAt', 'path'], arguments: ['orderParameterName' => 'order'])]
6262
#[ApiFilter(OrSearchFilter::class, properties: ['path' => 'ipartial'])]
6363
#[Post]
6464
#[GetCollection]

0 commit comments

Comments
 (0)