aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/web/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/web/app.py')
-rw-r--r--libmproxy/web/app.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmproxy/web/app.py b/libmproxy/web/app.py
index 7c26c29d..31b299a3 100644
--- a/libmproxy/web/app.py
+++ b/libmproxy/web/app.py
@@ -3,9 +3,15 @@ import os.path
import tornado.web
+class IndexHandler(tornado.web.RequestHandler):
+ def get(self):
+ self.render("index.html")
+
+
class Application(tornado.web.Application):
def __init__(self, debug):
handlers = [
+ (r"/", IndexHandler),
]
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), "templates"),