Skip to content

Commit dc40e27

Browse files
author
Thibaudeau Pierre
committed
review @soyuka 1
1 parent bb487d9 commit dc40e27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/controllers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ use App\Controller\CreateBookPublication;
103103
#[ApiResource]
104104
#[Get]
105105
#[Post(
106-
name: 'post_publication',
106+
name: 'publication',
107107
uriTemplate: '/books/{id}/publication',
108108
controller: CreateBookPublication::class
109109
)]
@@ -173,7 +173,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
173173
#[ApiResource]
174174
#[Get]
175175
#[Post(
176-
name: 'post_publication',
176+
name: 'publication',
177177
uriTemplate: '/books/{id}/publication',
178178
controller: CreateBookPublication::class,
179179
normalizationContext: ['groups' => 'publication']
@@ -252,7 +252,7 @@ use App\Controller\CreateBookPublication;
252252
#[ApiResource]
253253
#[Get]
254254
#[Post(
255-
name: 'post_publication',
255+
name: 'publication',
256256
uriTemplate: '/books/{id}/publication',
257257
controller: CreateBookPublication::class,
258258
read: false
@@ -332,7 +332,7 @@ use ApiPlatform\Metadata\Post;
332332

333333
#[ApiResource]
334334
#[Get]
335-
#[Post(name: 'post_publication', routeName: 'book_post_publication')]
335+
#[Post(name: 'publication', routeName: 'book_post_publication')]
336336
#[Post(name: 'book_post_discontinuation')]
337337
class Book
338338
{

0 commit comments

Comments
 (0)