blob: 4956f9822b4656c2eb658d9e65d10479d444e9e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package server
import (
"net/http"
"github.com/containers/libpod/pkg/api/handlers/generic"
"github.com/gorilla/mux"
)
func (s *APIServer) registerPingHandlers(r *mux.Router) error {
r.Handle("/_ping", APIHandler(s.Context, generic.PingGET)).Methods(http.MethodGet)
r.Handle("/_ping", APIHandler(s.Context, generic.PingHEAD)).Methods("HEAD")
// libpod
r.Handle("/libpod/_ping", APIHandler(s.Context, generic.PingGET)).Methods(http.MethodGet)
return nil
}
|