fluke/devops-service/app/api3/routes/api-docs.rb
Tim Lianov 03dc3d8d99 v3
2018-04-04 22:44:39 +03:00

24 lines
456 B
Ruby

module Devops
module API3
module Routes
module ApiDocsRoutes
def self.registered(app)
app.get "/api/docs" do
json Devops::API3::Handler::ApiDocs.new(request).index
end
app.get "/swagger-ui/index.html" do
@preffix = DevopsConfig.config[:url_prefix]
erb :'index.html'
end
puts "API docs routes initialized"
end
end
end
end
end