Integrating ZFS
Some checks failed
CI / test-build (push) Failing after 59s

This commit is contained in:
2025-12-14 23:00:18 +07:00
parent a6da313dfc
commit 461edbc970
4 changed files with 622 additions and 22 deletions

View File

@@ -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) },