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