mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 20:17:59 +00:00
http: remount verbs
This commit is contained in:
@@ -26,6 +26,14 @@ func handleSysMounts(core *vault.Core) http.Handler {
|
||||
|
||||
func handleSysRemount(core *vault.Core) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.Method {
|
||||
case "POST":
|
||||
case "PUT":
|
||||
default:
|
||||
respondError(w, http.StatusMethodNotAllowed, nil)
|
||||
return
|
||||
}
|
||||
|
||||
// Parse the request if we can
|
||||
var req RemountRequest
|
||||
if err := parseRequest(r, &req); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user