Fixed request endpoint uri

This commit is contained in:
tsoganov 2024-10-11 10:59:08 +03:00
parent 8ed18ab76e
commit d04622c49f

View file

@ -56,7 +56,7 @@ module Eeid
end end
def build_request(endpoint, method, body) def build_request(endpoint, method, body)
uri = URI.parse("#{BASE_URL}/#{endpoint}") uri = URI.parse("#{BASE_URL}#{endpoint}")
request = create_request(uri, method) request = create_request(uri, method)
request['Authorization'] = "Bearer #{@token}" request['Authorization'] = "Bearer #{@token}"
request.body = body.to_json if body request.body = body.to_json if body