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

import (
	"github.com/containers/podman/v2/pkg/api/handlers/compat"
	"github.com/gorilla/mux"
)

func (s *APIServer) registerMonitorHandlers(r *mux.Router) error {
	r.Handle(VersionedPath("/monitor"), s.APIHandler(compat.UnsupportedHandler))
	// Added non version path to URI to support docker non versioned paths
	r.Handle("/monitor", s.APIHandler(compat.UnsupportedHandler))
	return nil
}