From 968c5008ec6016346d2cca4f4959da4c2614d9aa Mon Sep 17 00:00:00 2001 From: Graham McIntie Date: Sat, 14 Feb 2026 17:46:28 -0600 Subject: [PATCH] api: expand format_site to return all fields including lat/lng --- .../controllers/api/v1/sites_controller.ex | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/towerops_web/controllers/api/v1/sites_controller.ex b/lib/towerops_web/controllers/api/v1/sites_controller.ex index c96e17d9..5d099cbd 100644 --- a/lib/towerops_web/controllers/api/v1/sites_controller.ex +++ b/lib/towerops_web/controllers/api/v1/sites_controller.ex @@ -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