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))