transient.chat/blueprints/static_routes.py

14 lines
296 B
Python
Raw Normal View History

2026-05-12 23:50:49 +00:00
from flask import Blueprint, send_from_directory
static_bp = Blueprint("static", __name__)
@static_bp.route("/")
def index():
return send_from_directory("static", "index.html")
@static_bp.route("/<path:path>")
def serve_static_files(path):
return send_from_directory("static", path)