spotnotes.app/blueprints/static_routes.py
2026-05-12 18:58:18 -05:00

11 lines
No EOL
284 B
Python

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)