summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_healthcheck.go
blob: 1286324f0c2b5a657e65771ca05abcd9372fed85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package server

import (
	"net/http"

	"github.com/containers/libpod/pkg/api/handlers/libpod"
	"github.com/gorilla/mux"
)

func (s *APIServer) registerHealthCheckHandlers(r *mux.Router) error {
	r.Handle(VersionedPath("/libpod/containers/{name}/runhealthcheck"), APIHandler(s.Context, libpod.RunHealthCheck)).Methods(http.MethodGet)
	return nil
}