only warn for unused files

This commit is contained in:
bymyself 2025-10-17 19:44:27 -07:00
parent 9da397ea2f
commit f6af812c2d

View File

@ -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"):
# Only warn once per unique file path
if path not in _deprecated_paths_warned:
_deprecated_paths_warned.add(path)