diff options
Diffstat (limited to 'pkg/api/server/register_version.go')
-rw-r--r-- | pkg/api/server/register_version.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/api/server/register_version.go b/pkg/api/server/register_version.go index c8f9dcede..ee01ad4b3 100644 --- a/pkg/api/server/register_version.go +++ b/pkg/api/server/register_version.go @@ -1,12 +1,14 @@ package server import ( + "net/http" + "github.com/containers/libpod/pkg/api/handlers" "github.com/gorilla/mux" ) func (s *APIServer) registerVersionHandlers(r *mux.Router) error { - r.Handle("/version", s.APIHandler(handlers.VersionHandler)) - r.Handle(VersionedPath("/version"), s.APIHandler(handlers.VersionHandler)) + r.Handle("/version", s.APIHandler(handlers.VersionHandler)).Methods(http.MethodGet) + r.Handle(VersionedPath("/version"), s.APIHandler(handlers.VersionHandler)).Methods(http.MethodGet) return nil } |