diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2017-01-08 10:22:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-08 10:22:31 +0100 |
commit | a4180d0b8ef7af16e0b1a63cb45a8eeaa8b0dc52 (patch) | |
tree | da88da726784e7a9ab0ed0098c0d4077212496ea /app | |
parent | cace43dd7ba27b3e26497ada1e62718c817ea735 (diff) | |
parent | 0bacc9e175d57676bf23348cf039cb3f214dfb33 (diff) | |
download | wallabag-a4180d0b8ef7af16e0b1a63cb45a8eeaa8b0dc52.tar.gz wallabag-a4180d0b8ef7af16e0b1a63cb45a8eeaa8b0dc52.tar.zst wallabag-a4180d0b8ef7af16e0b1a63cb45a8eeaa8b0dc52.zip |
Merge pull request #2733 from wallabag/fix-no-matching-response
Fixed API error No matching accepted Response format could be determined
Diffstat (limited to 'app')
-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 } |