From 3ad4890ad4a99eee7069c61dac97632649dfaef1 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 8 Nov 2021 10:14:49 +0100 Subject: [PATCH] Use JSON as default for remote evaluation --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index ca546cea..96d20ffd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -158,8 +158,8 @@ Rails.application.routes.draw do resources :events, only: [:create] - post '/evaluate', to: 'remote_evaluation#evaluate', via: [:post] - post '/submit', to: 'remote_evaluation#submit', via: [:post] + post '/evaluate', to: 'remote_evaluation#evaluate', defaults: {format: :json} + post '/submit', to: 'remote_evaluation#submit', defaults: {format: :json} resources :ping, only: :index, defaults: {format: :json}