]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
pass common API error text through to Potlatch so it can be shown to the user
[rails.git] / app / controllers / api_controller.rb
index ebf729afc322812002231adeeefe6e486a756367..ca4cbcbd7c3439304a6ed38179c25c6fb2ad6bfa 100644 (file)
@@ -284,6 +284,9 @@ class ApiController < ApplicationController
     waynodes = XML::Node.new 'waynodes'
     waynodes['maximum'] = APP_CONFIG['max_number_of_way_nodes'].to_s
     api << waynodes
+    changesets = XML::Node.new 'changesets'
+    changesets['maximum_elements'] = Changeset::MAX_ELEMENTS.to_s
+    api << changesets
     
     doc.root << api