api: expand format_site to return all fields including lat/lng
This commit is contained in:
parent
75aece28a7
commit
968c5008ec
1 changed files with 10 additions and 0 deletions
|
|
@ -212,8 +212,18 @@ defmodule ToweropsWeb.Api.V1.SitesController do
|
|||
%{
|
||||
id: site.id,
|
||||
name: site.name,
|
||||
description: site.description,
|
||||
location: site.location,
|
||||
address: site.address,
|
||||
latitude: site.latitude,
|
||||
longitude: site.longitude,
|
||||
display_order: site.display_order,
|
||||
snmp_community: site.snmp_community,
|
||||
snmp_version: site.snmp_version,
|
||||
snmp_port: site.snmp_port,
|
||||
snmp_transport: site.snmp_transport,
|
||||
agent_token_id: site.agent_token_id,
|
||||
parent_site_id: site.parent_site_id,
|
||||
inserted_at: site.inserted_at
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue