Files
CmdForge/src/smarttools/web/__init__.py
T
robandClaude Opus 4.5 e029166ba6 Change web blueprint static URL path to avoid conflict
The main Flask app and web blueprint both used /static, causing
conflicts. Changed web blueprint to use /web-static instead.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
2025-12-31 20:08:20 -04:00

16 lines
379 B
Python

"""Web UI blueprint for SmartTools."""
import os
from flask import Blueprint
# Use absolute paths for templates and static folders
_pkg_dir = os.path.dirname(os.path.abspath(__file__))
web_bp = Blueprint(
"web",
__name__,
template_folder=os.path.join(_pkg_dir, "templates"),
static_folder=os.path.join(_pkg_dir, "static"),
static_url_path="/web-static",
)