HHHH
This commit is contained in:
parent
3c6a00b96e
commit
e95ab30e20
@ -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))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user