diff options
author | gebele <gebele@in-silico.ch> | 2017-11-23 11:49:52 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2017-11-23 11:49:52 +0100 |
commit | 12f88bf241f653936cb3ed959a989cb71eca47f0 (patch) | |
tree | 0381afee0293e649b5d4f98815b50b1a8d349706 /lib/api.rb | |
parent | b5f557b3c0c2b4a7b39720c4f345e8514a61fbe6 (diff) |
dropped SERVICE var
Diffstat (limited to 'lib/api.rb')
-rw-r--r-- | lib/api.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,8 +2,8 @@ get "/api/api.json" do response['Content-Type'] = "application/json" api_file = File.join("api", "api.json") - bad_request_error "API Documentation in Swagger JSON is not implemented.", uri("/#{SERVICE}/api") unless File.exists?(api_file) + bad_request_error "API Documentation in Swagger JSON is not implemented." unless File.exists?(api_file) api_hash = JSON.parse(File.read(api_file)) api_hash["host"] = request.env['HTTP_HOST'] return api_hash.to_json -end
\ No newline at end of file +end |