INNER CODE UNIT · Python
send_data
HendrikStrobelt/detecting-fake-text · server.py:69
def send_data(path):
""" serves all files from the data dir to ``/data/<path:path>``
:param path: path from api call
"""
print('Got the data route for', path)
return send_from_directory(args.dir, path)
# @app.route('/')
# def redirect_home():
# return redirect('/client/index.html', code=302)
# def load_projects(directory):
# """
# searches for CONFIG_FILE_NAME in all subdirectories of directory
# and creates data handlers for all of them