summaryrefslogtreecommitdiff
path: root/lib/api.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api.rb')
-rw-r--r--lib/api.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api.rb b/lib/api.rb
index 98623dc..28e33df 100644
--- a/lib/api.rb
+++ b/lib/api.rb
@@ -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