Esempio n. 1
0
def lib_static_proxy(path):
    """ send_static_file will guess the correct MIME type"""
    return app.send_static_file(os.path.join('lib', path))
Esempio n. 2
0
def img_static_proxy(path):
    # send_static_file will guess the correct MIME type
    return app.send_static_file(os.path.join('img', path))
Esempio n. 3
0
def send_text_file(file_name):
    """Send your static text file."""
    file_dot_text = file_name + ".txt"
    return app.send_static_file(file_dot_text)
Esempio n. 4
0
def css_static_proxy(path):
    """ send_static_file will guess the correct MIME type"""
    print os.path.join('css', path)
    return app.send_static_file(os.path.join('css', path))
Esempio n. 5
0
def root():
    return app.send_static_file("index.html")
Esempio n. 6
0
def img_static_proxy(path):
    # send_static_file will guess the correct MIME type
    return app.send_static_file(os.path.join('img', path))
Esempio n. 7
0
def lib_static_proxy(path):
    """ send_static_file will guess the correct MIME type"""
    return app.send_static_file(os.path.join('lib', path))
Esempio n. 8
0
def css_static_proxy(path):
    """ send_static_file will guess the correct MIME type"""
    print os.path.join('css', path)
    return app.send_static_file(os.path.join('css', path))
Esempio n. 9
0
def index():
    return app.send_static_file('index.html')