summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_system.go
blob: 188c1cdac7963fabea155b1068803ba6e4b3a9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package server

import (
	"net/http"

	"github.com/containers/libpod/pkg/api/handlers/generic"
	"github.com/gorilla/mux"
)

func (s *APIServer) registerSystemHandlers(r *mux.Router) error {
	r.Handle(VersionedPath("/system/df"), s.APIHandler(generic.GetDiskUsage)).Methods(http.MethodGet)
	return nil
}