Browse Source

Stick the endpoint behind basic auth

pull/44/head^2
baarkerlounger 4 years ago
parent
commit
13fc571cdd
  1. 1
      app/controllers/case_logs_controller.rb

1
app/controllers/case_logs_controller.rb

@ -1,5 +1,6 @@
class CaseLogsController < ApplicationController
skip_before_action :verify_authenticity_token, only: [:create], if: :json_request?
http_basic_authenticate_with name: ENV["API_USER"], password: ENV["API_KEY"], only: [:create], if: :json_request?
def index
@submitted_case_logs = CaseLog.where(status: 1)

Loading…
Cancel
Save