mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 02:51:04 +00:00
Merge pull request #6869 from wallabag/fix-api-token
Fix API token generation
This commit is contained in:
commit
abef36fd2b
1 changed files with 3 additions and 5 deletions
|
@ -84,13 +84,8 @@ doctrine_migrations:
|
||||||
executed_at_column_name: 'executed_at'
|
executed_at_column_name: 'executed_at'
|
||||||
|
|
||||||
fos_rest:
|
fos_rest:
|
||||||
zone:
|
|
||||||
- { path: ^/api }
|
|
||||||
- { path: ^/annotations }
|
|
||||||
param_fetcher_listener: true
|
param_fetcher_listener: true
|
||||||
body_listener: true
|
body_listener: true
|
||||||
exception:
|
|
||||||
serializer_error_renderer: true
|
|
||||||
view:
|
view:
|
||||||
mime_types:
|
mime_types:
|
||||||
csv:
|
csv:
|
||||||
|
@ -119,6 +114,9 @@ fos_rest:
|
||||||
- { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
|
- { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
|
||||||
- { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
|
- { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
|
||||||
- { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
|
- { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
|
||||||
|
# for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
|
||||||
|
# so we need to add custom rule for custom api export but also for all other routes of the application...
|
||||||
|
- { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
|
||||||
|
|
||||||
nelmio_api_doc:
|
nelmio_api_doc:
|
||||||
areas:
|
areas:
|
||||||
|
|
Loading…
Reference in a new issue