]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/index.json.jsonify
Restructure notes URLs according to standard rails conventions
[rails.git] / app / views / notes / index.json.jsonify
diff --git a/app/views/notes/index.json.jsonify b/app/views/notes/index.json.jsonify
new file mode 100644 (file)
index 0000000..cb75d41
--- /dev/null
@@ -0,0 +1,5 @@
+json.type "FeatureCollection"
+
+json.features(@notes) do |note|
+  json.ingest! render(:partial => "note", :object => note)
+end