This commit is contained in:
@@ -18,6 +18,12 @@ func (a *App) routes() {
|
||||
a.mux.HandleFunc("/healthz", a.handleHealthz)
|
||||
a.mux.HandleFunc("/metrics", a.handleMetrics)
|
||||
|
||||
// Dashboard API
|
||||
a.mux.HandleFunc("/api/v1/dashboard", methodHandler(
|
||||
func(w http.ResponseWriter, r *http.Request) { a.handleDashboardAPI(w, r) },
|
||||
nil, nil, nil, nil,
|
||||
))
|
||||
|
||||
// API v1 routes - ZFS Management
|
||||
a.mux.HandleFunc("/api/v1/disks", methodHandler(
|
||||
func(w http.ResponseWriter, r *http.Request) { a.handleListDisks(w, r) },
|
||||
|
||||
Reference in New Issue
Block a user