module-and-template-store/app/views/clients/index.json.jbuilder

5 lines
146 B
Ruby

json.array!(@clients) do |client|
json.extract! client, :id, :site_name, :site_token, :site_id
json.url client_url(client, format: :json)
end