blob: 94216b1b6b628d5f34667458fccdc4a5174ed5a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package server
import (
"github.com/containers/libpod/pkg/api/handlers/generic"
"github.com/gorilla/mux"
)
func (s *APIServer) registerVersionHandlers(r *mux.Router) error {
r.Handle("/version", APIHandler(s.Context, generic.VersionHandler))
r.Handle(VersionedPath("/version"), APIHandler(s.Context, generic.VersionHandler))
return nil
}
|