diff --git a/app/controllers/case_logs_controller.rb b/app/controllers/case_logs_controller.rb index 2cb9d1a59..b3e1f2eec 100644 --- a/app/controllers/case_logs_controller.rb +++ b/app/controllers/case_logs_controller.rb @@ -1,4 +1,6 @@ class CaseLogsController < ApplicationController + skip_before_action :verify_authenticity_token + def index @submitted_case_logs = CaseLog.where(status: 1) @in_progress_case_logs = CaseLog.where(status: 0) diff --git a/spec/requests/case_log_controller_spec.rb b/spec/requests/case_log_controller_spec.rb index fe8a30636..7b5f7570e 100644 --- a/spec/requests/case_log_controller_spec.rb +++ b/spec/requests/case_log_controller_spec.rb @@ -5,7 +5,7 @@ RSpec.describe CaseLogsController, type: :request do let(:headers) do { "Content-Type" => "application/json", - "ACCEPT" => "application/json" + "Accept" => "application/json" } end