mirror of https://github.com/containers/podman.git
15 lines
382 B
Go
15 lines
382 B
Go
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)).Methods(http.MethodGet)
|
|
r.Handle(VersionedPath("/version"), s.APIHandler(handlers.VersionHandler)).Methods(http.MethodGet)
|
|
return nil
|
|
}
|