summaryrefslogtreecommitdiff
path: root/app/views/pois/index.json.jbuilder
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pois/index.json.jbuilder')
-rw-r--r--app/views/pois/index.json.jbuilder4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/pois/index.json.jbuilder b/app/views/pois/index.json.jbuilder
new file mode 100644
index 0000000..c0f24fe
--- /dev/null
+++ b/app/views/pois/index.json.jbuilder
@@ -0,0 +1,4 @@
+json.array!(@pois) do |poi|
+ json.extract! poi, :id, :message, :lat, :lon
+ json.url poi_url(poi, format: :json)
+end