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

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

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