summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_info.go
diff options
context:
space:
mode:
authorSteve Taylor <steven@taylormuff.co.uk>2020-03-05 22:28:22 +0000
committerSteve Taylor <steven@taylormuff.co.uk>2020-03-05 22:28:22 +0000
commit89b083f8b409f24d2bfce793f150f79c8160dd95 (patch)
treebdf9de2c526b7fe6fc76f65be9de4ed1ecccad0b /pkg/api/server/register_info.go
parent60e9e7ca9c9081f31f6b37c922f0058f82b989ad (diff)
downloadpodman-89b083f8b409f24d2bfce793f150f79c8160dd95.tar.gz
podman-89b083f8b409f24d2bfce793f150f79c8160dd95.tar.bz2
podman-89b083f8b409f24d2bfce793f150f79c8160dd95.zip
Register handlers without version to align with docker API
Signed-off-by: Steve Taylor <steven@taylormuff.co.uk>
Diffstat (limited to 'pkg/api/server/register_info.go')
-rw-r--r--pkg/api/server/register_info.go2
1 files changed, 2 insertions, 0 deletions
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
}