14 lines
275 B
Python
14 lines
275 B
Python
from app import app
|
|
|
|
from flask import send_from_directory
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return send_from_directory("html", "index.html")
|
|
|
|
@app.route('/<path:path>/<path:filename>')
|
|
def static(path, filename):
|
|
return send_from_directory("html/%s" % path, filename)
|
|
|
|
|