From e95ab30e20f5154132af2a999cd1d2f1e82a8ea4 Mon Sep 17 00:00:00 2001 From: cangui Date: Fri, 9 May 2025 17:37:56 +0200 Subject: [PATCH] HHHH --- backend/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/routes.go b/backend/routes/routes.go index 860ae17..baa9734 100644 --- a/backend/routes/routes.go +++ b/backend/routes/routes.go @@ -38,7 +38,7 @@ func RoutesProtected(r *mux.Router, db *gorm.DB) { r.HandleFunc("/admin/user", renders.AdminUserList(db)) r.HandleFunc("/api/user/delete/{id}", handlers.AdminUserDelete(db)).Methods("DELETE") r.HandleFunc("/api/user/update/{id}", renders.AdminUserUpdate(db)).Methods("POST") - r.HandleFunc("/api/user/create", renders.AdminUserCreate(db)).Methods("POST") + r.HandleFunc("/api/user/create", renders.CreateUserHandler(db)).Methods("POST") r.HandleFunc("/admin/user/create-form", renders.AdminUserCreateForm()).Methods("GET") r.HandleFunc("/dashboard", renders.Dashboard(db))