mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-17 10:02:59 +08:00
Deprecation warning on unused files (#10387)
* only warn for unused files * include internal extensions
This commit is contained in:
parent
b4f30bd408
commit
b5c59b763c
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user