]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Make the node controller return the modified time for deleted nodes
[rails.git] / app / controllers / api_controller.rb
index 602b79d69c5462e6f9a0cdae3d2e1c55b343c306..5e75c731e9be85a1cbded6614815e4b688b54a3c 100644 (file)
@@ -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"