http: allow trailing slash on GET /sys/auth

This commit is contained in:
Mitchell Hashimoto 2015-04-22 07:55:51 +02:00
parent 1340715a1a
commit e5facee87d

View file

@ -11,6 +11,8 @@ import (
func handleSysAuth(core *vault.Core) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "GET":
handleSysListAuth(core).ServeHTTP(w, r)
case "POST":
fallthrough
case "DELETE":