Put @Rest\Prefix annotation at the top of class declaration.
[Project_proches_de_moi-server.git] / 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"