towerops/lib/towerops_web/controllers
Graham McIntire 9a6369bd27
Fix agent API protobuf support and Mix.env runtime error
Fixed two critical issues preventing agent communication:

1. Fix Mix.env() runtime error in production
   - Replace Mix.env() with Application.get_env(:towerops, :env)
   - Add :env config to test.exs
   - Mix module not available in production releases

2. Add Protocol Buffers support to agent API endpoints
   - GET /api/v1/agent/config now accepts application/x-protobuf
   - POST /api/v1/agent/heartbeat now accepts application/x-protobuf
   - Added conversion functions for config/equipment/sensors/interfaces
   - Maintains JSON backward compatibility as fallback

All agent controller tests passing (14 tests, 0 failures)
2026-01-14 16:35:47 -06:00
..
api Fix agent API protobuf support and Mix.env runtime error 2026-01-14 16:35:47 -06:00
error_html add error pages 2026-01-06 14:37:48 -06:00
page_html separate out marketing layouts 2026-01-06 14:46:39 -06:00
user_registration_html Improve UI styling and remove DaisyUI dependencies 2026-01-03 11:02:38 -06:00
user_session_html add passkey 2026-01-09 12:26:32 -06:00
user_settings_html add passkey 2026-01-09 12:26:32 -06:00
admin_controller.ex Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
error_html.ex add error pages 2026-01-06 14:37:48 -06:00
error_json.ex init 2025-12-21 11:10:43 -06:00
health_controller.ex update liveview 2026-01-14 13:54:48 -06:00
page_controller.ex add marketing site 2026-01-06 14:34:48 -06:00
page_html.ex init 2025-12-21 11:10:43 -06:00
user_credential_controller.ex add passkey 2026-01-09 12:26:32 -06:00
user_registration_controller.ex 1. User Authentication 2025-12-21 13:31:59 -06:00
user_registration_html.ex 1. User Authentication 2025-12-21 13:31:59 -06:00
user_session_controller.ex Streamline login flow and fix test failures 2026-01-13 13:08:24 -06:00
user_session_html.ex 1. User Authentication 2025-12-21 13:31:59 -06:00
user_settings_controller.ex add passkey 2026-01-09 12:26:32 -06:00
user_settings_html.ex 1. User Authentication 2025-12-21 13:31:59 -06:00