mirror of https://github.com/containers/podman.git
13 lines
321 B
Go
13 lines
321 B
Go
package server
|
|
|
|
import (
|
|
"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))
|
|
return nil
|
|
}
|