Mercurial > gemma
changeset 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 | 3b688fe04c39 |
children | d39f897fae16 |
files | controllers/routes.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)