feat: POST /users is now no longer a protected route

This commit is contained in:
2026-08-31 21:15:24 +02:00
parent 8b0d82ac24
commit 2ae4dbdc11
+3 -1
View File
@@ -45,7 +45,9 @@ func NewMux(cfg Config) http.Handler {
apiMux.HandleFunc("POST /logout/all", authHandler.LogoutAllDevices) apiMux.HandleFunc("POST /logout/all", authHandler.LogoutAllDevices)
// Users // Users
apiMux.Handle("POST /users", protected(userHandler.CreateUser)) apiMux.HandleFunc("POST /users", userHandler.CreateUser)
// User
apiMux.Handle("POST /user/password", protected(userHandler.ChangePassword)) apiMux.Handle("POST /user/password", protected(userHandler.ChangePassword))
// Invites // Invites