Put @Rest\Prefix annotation at the top of class declaration.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Jun 2018 19:37:15 +0000 (21:37 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Jun 2018 19:37:15 +0000 (21:37 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/Controller/PersonController.php

index a47df7c50736291fc9ef14ab4a31540673b04b4d..8d4f1271ead0a1b7da8d750362f9f147c379cbc4 100644 (file)
@@ -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"