feat: added /auth/refresh route

This commit is contained in:
2026-08-03 14:58:55 +02:00
parent 9b45fd48ed
commit 8e80f8d481
+1
View File
@@ -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))