MCPcopy Create free account
hub / github.com/livekit/livekit / defaultHandler

Method defaultHandler

pkg/service/server.go:400–406  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

398}
399
400func (s *LivekitServer) defaultHandler(w http.ResponseWriter, r *http.Request) {
401 if r.URL.Path == "/" {
402 s.healthCheck(w, r)
403 } else {
404 http.NotFound(w, r)
405 }
406}
407
408func (s *LivekitServer) healthCheck(w http.ResponseWriter, _ *http.Request) {
409 var updatedAt time.Time

Callers

nothing calls this directly

Calls 1

healthCheckMethod · 0.95

Tested by

no test coverage detected