Added /auth/refresh route #10

Merged
robin merged 2 commits from dev into main 2026-08-03 15:01:09 +02:00
Showing only changes of commit 8e80f8d481 - Show all commits
+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))