login for all Methods

This commit is contained in:
Jan Eitzinger 2023-08-18 14:03:52 +02:00
parent e99d1a1e90
commit c87db1dfe6

View File

@ -376,7 +376,7 @@ func main() {
Status: http.StatusText(http.StatusForbidden), Status: http.StatusText(http.StatusForbidden),
Error: err.Error(), Error: err.Error(),
}) })
})).Methods(http.MethodGet) }))
r.Handle("/logout", authentication.Logout( r.Handle("/logout", authentication.Logout(
http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {