]> git.openstreetmap.org Git - rails.git/commit
Rework set_default_request_format ast set_request_formats
authorTom Hughes <tom@compton.nu>
Sat, 29 Feb 2020 15:15:02 +0000 (15:15 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 29 Feb 2020 15:28:23 +0000 (15:28 +0000)
commitaaf9d15d5679f97447be0a09790aa63fef0b9022
treeafabab66adecc5fd2c0afae34571546d493bd80d
parentc0c817b5429779e7bca1cb3958b7ad3e7d353c54
Rework set_default_request_format ast set_request_formats

Instead of trying to work out the exact format, just figure
out the list of allowed formats and let rails do the rest.
app/controllers/api/map_controller.rb
app/controllers/api/nodes_controller.rb
app/controllers/api/old_controller.rb
app/controllers/api/relations_controller.rb
app/controllers/api/ways_controller.rb
app/controllers/api_controller.rb