예제 #1
0
def get_photo(local_path):
    if '..' in local_path:
        abort(403)

    dest = os.path.join(config['LOCAL_SERVER_LOCATION'], local_path)
    if not os.path.exists(dest):
        abort(404)

    return app.send_static_file(dest)
예제 #2
0
def favicon():
    return app.send_static_file("favicon.ico")
예제 #3
0
파일: views.py 프로젝트: dbarlett/namespect
def static_content(filename):
    return app.send_static_file(filename)