diff options
Diffstat (limited to 'libpathod/app.py')
-rw-r--r-- | libpathod/app.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libpathod/app.py b/libpathod/app.py index 1e65bc4f..2a738b58 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -1,5 +1,8 @@ -from flask import Flask, jsonify +import logging +from flask import Flask, jsonify, render_template import version + +logging.basicConfig(level="DEBUG") app = Flask(__name__) @app.route('/api/info') @@ -22,6 +25,14 @@ def api_clear_log(): return "OK" + +@app.route('/') +@app.route('/index.html') +def index(): + return render_template("index.html", name="index", section="main") + + + """ class _Page(tornado.web.RequestHandler): def render(self, name, **kwargs): |