From: Jérôme Benoit Date: Wed, 27 Jun 2018 19:37:15 +0000 (+0200) Subject: Put @Rest\Prefix annotation at the top of class declaration. X-Git-Url: https://git.piment-noir.org/?p=Project_proches_de_moi-server.git;a=commitdiff_plain;h=df29951479f5e8012b541172fac893b7d476b402 Put @Rest\Prefix annotation at the top of class declaration. Signed-off-by: Jérôme Benoit --- diff --git a/src/Controller/PersonController.php b/src/Controller/PersonController.php index a47df7c..8d4f127 100644 --- a/src/Controller/PersonController.php +++ b/src/Controller/PersonController.php @@ -9,10 +9,12 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; +/** + * @Rest\Prefix("/api") + */ class PersonController extends FOSRestController { /** - * @Rest\Prefix("/api") * @Rest\Post( * path = "/person/inscription", * name = "create_person"