# HG changeset patch # User Sascha L. Teichmann # Date 1532622160 -7200 # Node ID 24eb518b03945c7ebbd40bdd74ae45589f3d0def # Parent 3b688fe04c3930b8f455f9cffd987387bd6de3e3 /users delete should be handled by HTTP DELETE not PUT. diff -r 3b688fe04c39 -r 24eb518b0394 controllers/routes.go --- a/controllers/routes.go Thu Jul 26 18:08:58 2018 +0200 +++ b/controllers/routes.go Thu Jul 26 18:22:40 2018 +0200 @@ -26,7 +26,7 @@ api.Handle("/users/{user}", sysAdmin(&JSONHandler{ Handle: deleteUser, - })).Methods(http.MethodPut) + })).Methods(http.MethodDelete) api.HandleFunc("/login", login). Methods(http.MethodGet, http.MethodPost)