diff options
Diffstat (limited to 'app/views/api/agents/index.json.jbuilder')
| -rw-r--r-- | app/views/api/agents/index.json.jbuilder | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/api/agents/index.json.jbuilder b/app/views/api/agents/index.json.jbuilder new file mode 100644 index 0000000..65f6f60 --- /dev/null +++ b/app/views/api/agents/index.json.jbuilder @@ -0,0 +1,4 @@ +json.array!(@agents) do |agent| + json.extract! agent, :id, :hostname + json.url agent_url(agent, format: :json) +end |
