aboutsummaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'run.py')
-rwxr-xr-xrun.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/run.py b/run.py
index 8cedd8d..8d3bed8 100755
--- a/run.py
+++ b/run.py
@@ -2,7 +2,6 @@
import os
from flask import Flask, request, Response, render_template, send_file
-from flask import send_from_directory
from lib.util import check_auth, escape, generate_rss, read_cache
abs_path = os.path.dirname(os.path.abspath(__file__))
@@ -49,12 +48,5 @@ def list_books():
return Response('unauthorized', 401, form)
return render_template('index.html', books=books)
-@app.route('/static/<path:path>')
-def send_static(path):
- '''
- Serve static files from the static directory
- '''
- return send_from_directory('static', path)
-
if __name__ == '__main__':
app.run(host='127.0.0.1', port='8085', threaded=True)