Add handling of LIST verb to logical router

This commit is contained in:
Jeff Mitchell 2015-09-14 11:06:30 -04:00
parent eaba2b9df3
commit fdc7e717ee

View File

@ -38,6 +38,8 @@ func handleLogical(core *vault.Core, dataOnly bool) http.Handler {
op = logical.ListOperation
case "POST", "PUT":
op = logical.UpdateOperation
case "LIST":
op = logical.ListOperation
default:
respondError(w, http.StatusMethodNotAllowed, nil)
return