hscontrol: add /version HTTP endpoint (#2821)

This commit is contained in:
Kristoffer Dalby
2025-10-27 10:41:34 +01:00
committed by GitHub
parent e68e2288f7
commit 52d27d58f0
2 changed files with 19 additions and 0 deletions

View File

@@ -446,6 +446,7 @@ func (h *Headscale) createRouter(grpcMux *grpcRuntime.ServeMux) *mux.Router {
router.HandleFunc("/robots.txt", h.RobotsHandler).Methods(http.MethodGet)
router.HandleFunc("/health", h.HealthHandler).Methods(http.MethodGet)
router.HandleFunc("/version", h.VersionHandler).Methods(http.MethodGet)
router.HandleFunc("/key", h.KeyHandler).Methods(http.MethodGet)
router.HandleFunc("/register/{registration_id}", h.authProvider.RegisterHandler).
Methods(http.MethodGet)