Commit 4a6ff12b authored by Mat's avatar Mat

toujours le souci 401, token JWT not found !!!

testé dans postman,
2 espaces sinon JWT expiré,

si je met @Security("has_role('ROLE_USER')")
ça donne JWT Not Found
parent 78e6265f
......@@ -10,6 +10,12 @@ use FOS\RestBundle\Controller\FOSRestController;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
use Symfony\Component\HttpFoundation\Request;
/**
* Class BrasserieController
*
* //@Security("has_role('ROLE_USER')")
* @package Api2Bundle\Controller
*/
class BrasserieController extends FOSRestController
{
......@@ -35,6 +41,7 @@ class BrasserieController extends FOSRestController
public function putAction(Request $request, Brasserie $id)
{
// le fait de typer $id fait qu'il retourne un objet !
//dump($request); die;
$form = $this->createForm(BrasserieType::class, $id,
array(
......@@ -104,7 +111,6 @@ class BrasserieController extends FOSRestController
* @Rest\Delete(path="/brasserie/{id}")
* @Rest\View()
* @return Brasserie
* @Security("has_role('ROLE_USER')")
*/
public function deleteAction($id)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment