Use JSON as default for remote evaluation

This commit is contained in:
Sebastian Serth
2021-11-08 10:14:49 +01:00
parent ed4a6fc0c7
commit 3ad4890ad4

View File

@ -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}