X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6a09f49e71e00e27f0503d74a6af56f87b47b9a1..0c8ad2f86edefed72052b402742cadedb0d674d9:/app/controllers/api_controller.rb diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 602b79d69..5e75c731e 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -285,7 +285,12 @@ class ApiController < ApplicationController timeout = XML::Node.new 'timeout' timeout['seconds'] = API_TIMEOUT.to_s api << timeout - + status = XML::Node.new 'status' + status['database'] = database_status.to_s + status['api'] = api_status.to_s + status['gpx'] = gpx_status.to_s + api << status + doc.root << api render :text => doc.to_s, :content_type => "text/xml"