Skip to content

Commit

Permalink
Avoid Template missing when error happens
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Apr 16, 2020
1 parent 5490fdf commit a194548
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/packages/fos_rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ fos_rest:
json: true
xml: true
empty_content: 204
zone:
- { path: '^/api/.*' }
format_listener:
rules:
- { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
Expand Down

0 comments on commit a194548

Please sign in to comment.