]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/notes/index.xml.builder
Move the notes api methods into a controller in the api namespace
[rails.git] / app / views / api / notes / index.xml.builder
diff --git a/app/views/api/notes/index.xml.builder b/app/views/api/notes/index.xml.builder
new file mode 100644 (file)
index 0000000..286b1e1
--- /dev/null
@@ -0,0 +1,5 @@
+xml.instruct!
+
+xml.osm(OSM::API.new.xml_root_attributes) do |osm|
+  osm << (render(:partial => "note", :collection => @notes) || "")
+end