From ff09529ba3a5ec6d8df38a354ca61a6a4d33d3a1 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 14 Sep 2014 12:33:07 +1200 Subject: Add tornado dependency, serve index file --- libmproxy/web/app.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libmproxy/web/app.py') 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"), -- cgit v1.2.3