Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Deprecation warning on unused files (#10387)

Christian Byrneb5c59b763c6b
diff --git a/server.py b/server.py
index a44f4f237..10c2698b5 100644
--- a/server.py
+++ b/server.py
@@ -56,7 +56,7 @@ async def deprecation_warning(request: web.Request, handler):
"""Middleware to warn about deprecated frontend API paths"""
path = request.path
- if (path.startswith('/scripts/') or path.startswith('/extensions/core/')):
+ if path.startswith("/scripts/ui") or path.startswith("/extensions/core/"):
# Only warn once per unique file path
if path not in _deprecated_paths_warned:
_deprecated_paths_warned.add(path)