Optimized routing

This commit is contained in:
Kevin Frantz 2018-09-17 14:04:58 +02:00
parent c15caf03a1
commit 3fb0a6c658

View File

@ -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
{