Change name of API key

This commit is contained in:
Alex Sherman 2021-02-04 12:30:13 +05:00
parent 83b5dc6fc7
commit bb7effc370
2 changed files with 4 additions and 1 deletions

View file

@ -11,7 +11,7 @@ module Api
end
def authenticate_shared_key
api_key = "Basic #{ENV['api_shared_key']}"
api_key = "Basic #{ENV['internal_api_key']}"
head(:unauthorized) unless api_key == request.authorization
end