The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix routes (#3790)
Chenlei Hud7f096426617
diff --git a/server.py b/server.pyindex 590902587..30ea90c6c 100644--- a/server.py+++ b/server.py@@ -538,8 +538,10 @@ class PromptServer():# prefix are supported.api_routes = web.RouteTableDef()for route in self.routes:- assert isinstance(route, web.RouteDef)- api_routes.route(route.method, "/api" + route.path)(route.handler, **route.kwargs)+ # Custom nodes might add extra static routes. Only process non-static+ # routes to add /api prefix.+ if isinstance(route, web.RouteDef):+ api_routes.route(route.method, "/api" + route.path)(route.handler, **route.kwargs)self.app.add_routes(api_routes)self.app.add_routes(self.routes)