This commit is contained in:
@@ -15,6 +15,10 @@ func (a *App) routes() {
|
||||
a.mux.HandleFunc("/metrics", a.handleMetrics)
|
||||
|
||||
// API v1 routes - ZFS Management
|
||||
a.mux.HandleFunc("/api/v1/disks", methodHandler(
|
||||
func(w http.ResponseWriter, r *http.Request) { a.handleListDisks(w, r) },
|
||||
nil, nil, nil, nil,
|
||||
))
|
||||
a.mux.HandleFunc("/api/v1/pools", methodHandler(
|
||||
func(w http.ResponseWriter, r *http.Request) { a.handleListPools(w, r) },
|
||||
func(w http.ResponseWriter, r *http.Request) { a.handleCreatePool(w, r) },
|
||||
|
||||
Reference in New Issue
Block a user