spotnotes.app/blueprints/static_routes.py

11 lines
284 B
Python
Raw Normal View History

2026-05-12 23:58:18 +00:00
from flask import Blueprint, current_app
static_bp = Blueprint('static_routes', __name__)
@static_bp.route('/')
def index():
return current_app.send_static_file('index.html')
@static_bp.route('/<path:path>')
def serve_static(path):
return current_app.send_static_file(path)