nineskeletor/config/packages/fos_rest.yaml

12 lines
356 B
YAML
Raw Normal View History

2022-07-21 16:15:47 +02:00
# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html
fos_rest:
param_fetcher_listener: true
body_listener: true
format_listener:
enabled: true
rules:
- { path: '/rest', priorities: ['json', 'xml'], fallback_format: 'html' }
- { path: '/', fallback_format: 'html' }