github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/pkg/api/server/register_version.go (about) 1 package server 2 3 import ( 4 "net/http" 5 6 "github.com/containers/libpod/pkg/api/handlers/compat" 7 "github.com/gorilla/mux" 8 ) 9 10 func (s *APIServer) registerVersionHandlers(r *mux.Router) error { 11 r.Handle("/version", s.APIHandler(compat.VersionHandler)).Methods(http.MethodGet) 12 r.Handle(VersionedPath("/version"), s.APIHandler(compat.VersionHandler)).Methods(http.MethodGet) 13 return nil 14 }