From 89b083f8b409f24d2bfce793f150f79c8160dd95 Mon Sep 17 00:00:00 2001 From: Steve Taylor Date: Thu, 5 Mar 2020 22:28:22 +0000 Subject: Register handlers without version to align with docker API Signed-off-by: Steve Taylor --- pkg/api/server/register_info.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/api/server/register_info.go') diff --git a/pkg/api/server/register_info.go b/pkg/api/server/register_info.go index 36c467cc3..975a19fef 100644 --- a/pkg/api/server/register_info.go +++ b/pkg/api/server/register_info.go @@ -22,5 +22,7 @@ func (s *APIServer) registerInfoHandlers(r *mux.Router) error { // 500: // $ref: "#/responses/InternalError" r.Handle(VersionedPath("/info"), s.APIHandler(generic.GetInfo)).Methods(http.MethodGet) + // Added non version path to URI to support docker non versioned paths + r.Handle("/info", s.APIHandler(generic.GetInfo)).Methods(http.MethodGet) return nil } -- cgit v1.2.3-54-g00ecf