repositories
/
Project_proches_de_moi-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put @Rest\Prefix annotation at the top of class declaration.
[Project_proches_de_moi-server.git]
/
src
/
Controller
/
PersonController.php
diff --git
a/src/Controller/PersonController.php
b/src/Controller/PersonController.php
index a47df7c50736291fc9ef14ab4a31540673b04b4d..8d4f1271ead0a1b7da8d750362f9f147c379cbc4 100644
(file)
--- 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;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
+/**
+ * @Rest\Prefix("/api")
+ */
class PersonController extends FOSRestController
{
/**
class PersonController extends FOSRestController
{
/**
- * @Rest\Prefix("/api")
* @Rest\Post(
* path = "/person/inscription",
* name = "create_person"
* @Rest\Post(
* path = "/person/inscription",
* name = "create_person"