MCPcopy Index your code
hub / github.com/InferCore/InferCore / Routes

Method Routes

internal/server/server.go:142–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (s *Server) Routes() http.Handler {
143 mux := http.NewServeMux()
144 mux.HandleFunc("/health", s.health)
145 mux.HandleFunc("/status", s.status)
146 mux.HandleFunc("/metrics", s.metrics)
147 mux.HandleFunc("/infer", s.infer)
148 return s.withOptionalInfercoreAuth(s.withRequestLoggingAndMetrics(mux))
149}
150
151// Shutdown releases telemetry resources (e.g. OTLP batch flush). Call on process exit.
152func (s *Server) Shutdown(ctx context.Context) error {