]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Changeset discussions
[rails.git] / app / controllers / api_controller.rb
index 2c442c190585d590647a7705aaff4a1319869278..2f630c6d62f7801c274ea7b23b94a9e1c06f05ef 100644 (file)
@@ -287,8 +287,16 @@ class ApiController < ApplicationController
     status['api'] = api_status.to_s
     status['gpx'] = gpx_status.to_s
     api << status
-
     doc.root << api
+    policy = XML::Node.new 'policy'
+    blacklist = XML::Node.new 'imagery'
+    IMAGERY_BLACKLIST.each do |url_regex| 
+      xnd = XML::Node.new 'blacklist'
+      xnd['regex'] = url_regex.to_s
+      blacklist << xnd
+    end
+    policy << blacklist
+    doc.root << policy
 
     render :text => doc.to_s, :content_type => "text/xml"
   end