]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/user_blocks/show.xml.builder
Add show user block api endpoint
[rails.git] / app / views / api / user_blocks / show.xml.builder
diff --git a/app/views/api/user_blocks/show.xml.builder b/app/views/api/user_blocks/show.xml.builder
new file mode 100644 (file)
index 0000000..eff666b
--- /dev/null
@@ -0,0 +1,5 @@
+xml.instruct!
+
+xml.osm(OSM::API.new.xml_root_attributes) do |osm|
+  osm << (render(@user_block) || "")
+end