fix: /logout routes; improved error handling for invites

This commit is contained in:
2026-09-01 15:28:18 +02:00
parent 4b703b077c
commit b35dc4841f
6 changed files with 35 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ func NewMux(cfg Config) http.Handler {
apiMux.HandleFunc("POST /login", authHandler.Login)
apiMux.HandleFunc("POST /login/refresh", authHandler.Refresh)
apiMux.HandleFunc("POST /logout", authHandler.Logout)
apiMux.HandleFunc("POST /logout/all", authHandler.LogoutAllDevices)
apiMux.HandleFunc("POST /logout/all", protected(authHandler.LogoutAllDevices))
// Users
apiMux.HandleFunc("POST /users", userHandler.CreateUser)