Enable @Rest\View annotations.
[Project_proches_de_moi-server.git] / config / config.yaml
index 3c4eb73c1a66088663c5fd68fb75b6c20a0b4d0b..d0d7baf956579f6dbe742623c8cf704f39a1cb0c 100644 (file)
@@ -16,8 +16,10 @@ fos_rest:
         serialize_null: true
     format_listener:
         rules:
-            - { path: '^/', priorities: ['json'], fallback_format: 'json' }
+            - { path: '^/api', priorities: ['json'], fallback_format: 'json' }
     param_fetcher_listener: force
+    routing_loader:
+        include_format: false
     versioning:
         enabled: true
         resolvers:
@@ -26,5 +28,4 @@ fos_rest:
                 regex: '/(v|version)=(?P<version>[0-9\.]+)/'
 
 sensio_framework_extra:
-    view: { annotations: false }
     request: { converters: true }