Commit 1d14a5b8 authored by Mat's avatar Mat

modif config, rétabli l'accès aux autres pages du site

parent 4ac68c6c
......@@ -119,11 +119,11 @@ jms_serializer:
fos_rest:
body_converter:
enabled: true
zone:
- { path: "^/API" }
format_listener:
rules:
path: ^/API
priorities: [json]
fallback_format: 'json'
- { path: "^/API", priorities: [json], fallback_format: 'json' }
view:
view_response_listener: true
failed_validation: HTTP_BAD_REQUEST
\ No newline at end of file
......@@ -2,6 +2,7 @@
namespace SocketBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
use SocketBundle\Entity\User;
use SocketBundle\Form\UserType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
......@@ -72,6 +73,7 @@ class ChatController extends Controller
/**
* @Route(name="chat_message", path="/socket/chat")
* @Security("has_role('ROLE_USER')")
*/
public function messageAction()
{
......
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