mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
15 lines
267 B
Go
15 lines
267 B
Go
package driver
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
func Remove(w http.ResponseWriter, r *http.Request) {
|
|
var req RemoveRequest
|
|
_ = json.NewDecoder(r.Body).Decode(&req)
|
|
|
|
delete(volumes, req.Name)
|
|
_ = json.NewEncoder(w).Encode(map[string]string{"Err": ""})
|
|
}
|