summaryrefslogtreecommitdiff
path: root/app/views/api/agents/files/index.json.jbuilder
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-21 22:12:49 -0700
committermo khan <mo@mokhan.ca>2015-02-21 22:12:49 -0700
commit7cd78597d794efcf79090377bbc1909a1d6d3ad9 (patch)
treef4f55eb33be3912030c505198e67b1cba9ba2473 /app/views/api/agents/files/index.json.jbuilder
parentfeaf5cfae0f948ceebae4d1ff2c80d84cd76cae0 (diff)
parent05b427bd4d9f9c4ea60f9485f06d68de0b689d28 (diff)
merge with master
Diffstat (limited to 'app/views/api/agents/files/index.json.jbuilder')
-rw-r--r--app/views/api/agents/files/index.json.jbuilder4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/api/agents/files/index.json.jbuilder b/app/views/api/agents/files/index.json.jbuilder
new file mode 100644
index 0000000..6551a44
--- /dev/null
+++ b/app/views/api/agents/files/index.json.jbuilder
@@ -0,0 +1,4 @@
+json.array!(@files) do |file|
+ json.extract! agent, :fingerprint, :state
+ json.url agent_file_url([agent, file], format: :json)
+end