From 3fb0a6c658615802ffedece9eeb3368d4a3f340a Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Mon, 17 Sep 2018 14:04:58 +0200 Subject: [PATCH] Optimized routing --- application/src/Controller/SourceController.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/application/src/Controller/SourceController.php b/application/src/Controller/SourceController.php index 488a222..98a6b2e 100644 --- a/application/src/Controller/SourceController.php +++ b/application/src/Controller/SourceController.php @@ -18,10 +18,6 @@ use App\Creator\Factory\Form\Source\SourceFormFactory; */ class SourceController extends FOSRestController { - - public function modify(int $id): Response - {} - /** * * @Route("/source/{id}.{_format}", defaults={"_format"="html"}) @@ -37,7 +33,7 @@ class SourceController extends FOSRestController /** * - * @Route("/source/{id}.{_format}/edit", defaults={"_format"="html"}) + * @Route("/source/{id}/edit.{_format}", defaults={"_format"="html"}) */ public function edit(Request $request, int $id): Response {