http: expose GET /api/version

This commit is contained in:
2026-05-06 21:39:13 +01:00
parent 516c50fa16
commit f31f6edde7
3 changed files with 63 additions and 0 deletions
+1
View File
@@ -123,6 +123,7 @@ func (s *Server) routes(r chi.Router) {
r.Post("/api/agents/announce", s.handleAnnounce)
r.Get("/agent/binary", s.handleAgentBinary)
r.Get("/install/*", s.handleInstallAsset)
r.Get("/api/version", s.handleVersion)
if s.deps.Hub != nil {
r.Mount("/ws/agent", ws.AgentHandler(ws.HandlerDeps{
Hub: s.deps.Hub,