From df29951479f5e8012b541172fac893b7d476b402 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 27 Jun 2018 21:37:15 +0200 Subject: [PATCH] Put @Rest\Prefix annotation at the top of class declaration. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/Controller/PersonController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- 2.34.1