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