transient.chat/blueprints/static_routes.py
2026-05-12 18:50:49 -05:00

13 lines
296 B
Python

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)