accountant/src/static.py
2013-01-24 00:01:42 +01:00

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)