Admin is now able to add users
This commit is contained in:
parent
6f906ccae4
commit
240a8a0430
3 changed files with 53 additions and 0 deletions
|
@ -198,6 +198,7 @@ func InitRouter(db database.DB, sg *StatsGatherer, assetsPath string) http.Handl
|
|||
r.HandleFunc("/delete/{ids:(?:"+idPattern+"/)+}", sg.Gather(deleteHandler))
|
||||
r.HandleFunc("/admin/users/", sg.Gather(userAdminHandler)).Methods("GET")
|
||||
r.HandleFunc("/admin/users/", sg.Gather(userAdminPostHandler)).Methods("POST")
|
||||
r.HandleFunc("/admin/users/add/", sg.Gather(addUserHandler)).Methods("POST")
|
||||
|
||||
r.HandleFunc("/news/", sg.Gather(newsHandler))
|
||||
r.HandleFunc("/news/edit", sg.Gather(editNewsHandler)).Methods("GET")
|
||||
|
|
Reference in a new issue