diff --git a/src/Controller/CommentController.php b/src/Controller/CommentController.php index 1ee0f17..9f0f68b 100644 --- a/src/Controller/CommentController.php +++ b/src/Controller/CommentController.php @@ -5,7 +5,9 @@ namespace App\Controller; use App\Entity\Comment; use App\Entity\Owner; use App\Entity\Poll; +use FOS\RestBundle\Controller\Annotations\Delete; use FOS\RestBundle\Controller\Annotations\Get; +use FOS\RestBundle\Controller\Annotations\Post; use FOS\RestBundle\Controller\Annotations\Route; use JMS\Serializer\SerializerBuilder; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; diff --git a/src/Controller/PollController.php b/src/Controller/PollController.php index 63895de..0180cbf 100644 --- a/src/Controller/PollController.php +++ b/src/Controller/PollController.php @@ -5,7 +5,10 @@ namespace App\Controller; use App\Entity\Choice; use App\Entity\Owner; use App\Entity\Poll; +use FOS\RestBundle\Controller\Annotations\Delete; use FOS\RestBundle\Controller\Annotations\Get; +use FOS\RestBundle\Controller\Annotations\Post; +use FOS\RestBundle\Controller\Annotations\Put; use FOS\RestBundle\Controller\Annotations\Route; use JMS\Serializer\SerializerBuilder; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; diff --git a/src/Controller/VoteController.php b/src/Controller/VoteController.php index 8f20658..0605c0e 100644 --- a/src/Controller/VoteController.php +++ b/src/Controller/VoteController.php @@ -7,6 +7,8 @@ use App\Entity\Owner; use App\Entity\Poll; use App\Entity\StackOfVotes; use App\Entity\Vote; +use FOS\RestBundle\Controller\Annotations\Delete; +use FOS\RestBundle\Controller\Annotations\Post; use FOS\RestBundle\Controller\Annotations\Route; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; @@ -160,6 +162,5 @@ class VoteController extends AbstractController { 'message' => 'le token d\'autorisation est invalide, vous ne pouvez pas modifier ce sondage', ] ); } - } }