Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(main): router initialization
Dmitry Ng46c7807af9cc
diff --git a/backend/cmd/pentagi/main.go b/backend/cmd/pentagi/main.goindex 76aa3cc7..db6f67c5 100644--- a/backend/cmd/pentagi/main.go+++ b/backend/cmd/pentagi/main.go@@ -119,14 +119,14 @@ func main() {log.Fatalf("Active flows restoration failed: %v", err)}- r := router.NewRouter(queries, orm, cfg, providers, controller, subscriptions)+ r := router.NewRouter(queries, orm, cfg, providers, controller, subscriptions, client)// Launch HTTP/HTTPS server in background goroutineserverErrChan := make(chan error, 1)go func() {listen := net.JoinHostPort(cfg.ServerHost, strconv.Itoa(cfg.ServerPort))logrus.Infof("API server listening on %s", listen)-+var startErr errorif cfg.ServerUseSSL && cfg.ServerSSLCrt != "" && cfg.ServerSSLKey != "" {logrus.Info("Starting server with TLS enabled")@@ -135,7 +135,7 @@ func main() {logrus.Info("Starting server without TLS (HTTP only)")startErr = r.Run(listen)}-+if startErr != nil {serverErrChan <- fmt.Errorf("API server startup failed: %w", startErr)}