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

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

func (s *APIServer) registerDistributionHandlers(r *mux.Router) error {
	r.HandleFunc(VersionedPath("/distribution/{name}/json"), handlers.UnsupportedHandler)
	// Added non version path to URI to support docker non versioned paths
	r.HandleFunc("/distribution/{name}/json", handlers.UnsupportedHandler)
	return nil
}