mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00

To help with packaging, the handlers in pkg/api/handlers are now found in pkg/api/handler/compat. Signed-off-by: Jhon Honce <jhonce@redhat.com>
15 lines
385 B
Go
15 lines
385 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/containers/libpod/pkg/api/handlers/compat"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
func (s *APIServer) registerVersionHandlers(r *mux.Router) error {
|
|
r.Handle("/version", s.APIHandler(compat.VersionHandler)).Methods(http.MethodGet)
|
|
r.Handle(VersionedPath("/version"), s.APIHandler(compat.VersionHandler)).Methods(http.MethodGet)
|
|
return nil
|
|
}
|