diff --git a/config/routes.rb b/config/routes.rb index 6df8991..310ddd1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -122,10 +122,10 @@ get 'locked' get 'answer' #get 'edit' - post 'delete_recent_locks' - post 'lock_section' - post 'unlock_section' - post 'unlock_all_sections' + post 'delete_recent_locks', constraints: {format: ['html', 'json']} + post 'lock_section', constraints: {format: ['html', 'json']} + post 'unlock_section', constraints: {format: ['html', 'json']} + post 'unlock_all_sections', constraints: {format: ['html', 'json']} get 'export' get 'warning' get 'section_answers'