This commit is contained in:
cangui 2025-05-09 17:37:56 +02:00
parent 3c6a00b96e
commit e95ab30e20

View File

@ -38,7 +38,7 @@ func RoutesProtected(r *mux.Router, db *gorm.DB) {
r.HandleFunc("/admin/user", renders.AdminUserList(db)) r.HandleFunc("/admin/user", renders.AdminUserList(db))
r.HandleFunc("/api/user/delete/{id}", handlers.AdminUserDelete(db)).Methods("DELETE") 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/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("/admin/user/create-form", renders.AdminUserCreateForm()).Methods("GET")
r.HandleFunc("/dashboard", renders.Dashboard(db)) r.HandleFunc("/dashboard", renders.Dashboard(db))