diff options
Diffstat (limited to 'app/config/config.yml')
-rw-r--r-- | app/config/config.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/config/config.yml b/app/config/config.yml index 591b5294..05c82e43 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -148,9 +148,9 @@ fos_rest: | |||
148 | format_listener: | 148 | format_listener: |
149 | enabled: true | 149 | enabled: true |
150 | rules: | 150 | rules: |
151 | - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: false, prefer_extension: false } | 151 | - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false } |
152 | - { path: "^/api", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false } | 152 | - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false } |
153 | - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: false, prefer_extension: false } | 153 | - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false } |
154 | # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener | 154 | # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener |
155 | # so we need to add custom rule for custom api export but also for all other routes of the application... | 155 | # so we need to add custom rule for custom api export but also for all other routes of the application... |
156 | - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false } | 156 | - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false } |