diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-12-30 13:23:02 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-12-30 13:23:02 +0100 |
commit | 0bacc9e175d57676bf23348cf039cb3f214dfb33 (patch) | |
tree | 0755d0092a3bbb62222993f0eddc6f57f81f6256 /app/config | |
parent | 510b02573f18293e8f289cc482a458339716e6a2 (diff) | |
download | wallabag-0bacc9e175d57676bf23348cf039cb3f214dfb33.tar.gz wallabag-0bacc9e175d57676bf23348cf039cb3f214dfb33.tar.zst wallabag-0bacc9e175d57676bf23348cf039cb3f214dfb33.zip |
Fixed API error 'No matching accepted Response format could be determined'
Diffstat (limited to 'app/config')
-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 } |