1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00
date-poll-api/config/packages/fos_rest.yaml

19 lines
566 B
YAML
Raw Normal View History

2019-10-25 14:13:11 +02:00
# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html
fos_rest:
# param_fetcher_listener: true
# allowed_methods_listener: true
2019-11-05 16:31:27 +01:00
# view:
# view_response_listener: true
# exception:
# codes:
# App\Exception\MyException: 403
# messages:
# App\Exception\MyException: Forbidden area.
2019-11-06 11:23:43 +01:00
routing_loader: true
format_listener:
rules:
- { path: '^/',
prefer_extension: true,
fallback_format: json,
priorities: [ json, html ] }