Mercurial > gemma
diff controllers/routes.go @ 242:24eb518b0394
/users delete should be handled by HTTP DELETE not PUT.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 26 Jul 2018 18:22:40 +0200 |
parents | 9012e4045da4 |
children | deabc2712634 |
line wrap: on
line diff
--- 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)