somewhat fix agents

This commit is contained in:
d34dscene
2025-01-28 15:02:53 +01:00
parent 7c3c53fce0
commit abdc7fc3ea
30 changed files with 711 additions and 517 deletions

View File

@@ -126,11 +126,11 @@ func (s *Server) registerServices() {
s.mux.Handle(grpcreflect.NewHandlerV1(reflector))
s.mux.Handle(grpcreflect.NewHandlerV1Alpha(reflector))
// // Serve OpenAPI specs file
// Serve OpenAPI specs file
// fsHandler := http.FileServer(http.Dir("proto/gen/openapi"))
// s.mux.Handle("/openapi/", http.StripPrefix("/openapi/", fsHandler))
// // Serve Swagger UI
// Serve Swagger UI
// s.mux.HandleFunc("/swagger/", func(w http.ResponseWriter, r *http.Request) {
// httpSwagger.Handler(
// httpSwagger.URL("/openapi/api.swagger.yaml"),