11 lines
284 B
Python
11 lines
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)
|