From 8e80f8d4811d811615839d994a90ec933dee5915 Mon Sep 17 00:00:00 2001 From: Robin Dittmar Date: Mon, 3 Aug 2026 14:58:55 +0200 Subject: [PATCH 1/2] feat: added /auth/refresh route --- internal/api/router/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/api/router/router.go b/internal/api/router/router.go index 6b347cb..e660303 100644 --- a/internal/api/router/router.go +++ b/internal/api/router/router.go @@ -33,6 +33,7 @@ func NewMux(cfg Config) http.Handler { apiMux := http.NewServeMux() apiMux.HandleFunc("/", handler.DefaultHandler) apiMux.HandleFunc("POST /login", authHandler.Login) + apiMux.HandleFunc("POST /auth/refresh", authHandler.Refresh) apiMux.Handle("POST /users", protected(userHandler.CreateUser)) From 48c30ed9f4c40c98cdfb122db9b4d975d12754c9 Mon Sep 17 00:00:00 2001 From: Robin Dittmar Date: Mon, 3 Aug 2026 14:59:20 +0200 Subject: [PATCH 2/2] fix: moved /health route to /api/v1/health --- internal/api/router/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/router/router.go b/internal/api/router/router.go index e660303..2bd3141 100644 --- a/internal/api/router/router.go +++ b/internal/api/router/router.go @@ -32,6 +32,7 @@ func NewMux(cfg Config) http.Handler { apiMux := http.NewServeMux() apiMux.HandleFunc("/", handler.DefaultHandler) + apiMux.HandleFunc("GET /health", handler.HealthHandler) apiMux.HandleFunc("POST /login", authHandler.Login) apiMux.HandleFunc("POST /auth/refresh", authHandler.Refresh) @@ -40,7 +41,6 @@ func NewMux(cfg Config) http.Handler { apiMux.Handle("POST /lists", protected(listHandler.CreateList)) mux := http.NewServeMux() - mux.HandleFunc("GET /health", handler.HealthHandler) mux.Handle("/api/v1/", http.StripPrefix("/api/v1", apiMux)) var httpHandler http.Handler = mux