Skip to content

Commit bb8b7ab

Browse files
Koldo Picazakpicaza
authored andcommitted
fix routes help comment
1 parent e5f0fad commit bb8b7ab

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

router/routes.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@
1010
/**
1111
* Setup routes with a single request method:
1212
*
13-
* $app->get('/', App\Handler\HomePageHandler::class, 'home');
14-
* $app->post('/album', App\Handler\AlbumCreateHandler::class, 'album.create');
15-
* $app->put('/album/:id', App\Handler\AlbumUpdateHandler::class, 'album.put');
16-
* $app->patch('/album/:id', App\Handler\AlbumUpdateHandler::class, 'album.patch');
17-
* $app->delete('/album/:id', App\Handler\AlbumDeleteHandler::class, 'album.delete');
18-
*
19-
* Or with multiple request methods:
20-
*
21-
* $app->route('/contact', App\Handler\ContactHandler::class, ['GET', 'POST', ...], 'contact');
13+
* $app->get('/', [App\Handler\HomePageHandler::class], 'home');
14+
* $app->post('/album', [App\Handler\AlbumCreateHandler::class], 'album.create');
15+
* $app->put('/album/:id', [App\Handler\AlbumUpdateHandler::class], 'album.put');
16+
* $app->patch('/album/:id', [App\Handler\AlbumUpdateHandler::class], 'album.patch');
17+
* $app->delete('/album/:id', [App\Handler\AlbumDeleteHandler::class], 'album.delete');
2218
*/
2319
return static function (Application $app, ContainerInterface $container) : void {
2420
$app->get('/', [HelloWorld::class, HomePage::class], 'home');

0 commit comments

Comments
 (0)