From 8e80f8d4811d811615839d994a90ec933dee5915 Mon Sep 17 00:00:00 2001 From: Robin Dittmar Date: Mon, 3 Aug 2026 14:58:55 +0200 Subject: [PATCH] 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))