From 5aafb77fdb5c456feb7ee8b0a25a7a35935b7d3d Mon Sep 17 00:00:00 2001 From: rautenberg Date: Thu, 21 May 2015 13:39:28 +0200 Subject: add generic and unique route /SERVICE/api/SERVICE.json to swagger.json file --- lib/opentox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opentox.rb b/lib/opentox.rb index 6afcd35..ebd2338 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -199,7 +199,7 @@ module OpenTox # generic route to swagger API file get "/#{SERVICE}/api/#{SERVICE}.json" do response['Content-Type'] = "application/json" - api_file = File.join('api', '#{SERVICE}.json') + api_file = File.join("api", "#{SERVICE}.json") bad_request_error "API Documentation in Swagger JSON is not implemented.", uri("/#{SERVICE}/api") unless File.exists?(api_file) File.read(api_file) end -- cgit v1.2.3