aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/web/app.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-09-14 12:33:07 +1200
committerAldo Cortesi <aldo@nullcube.com>2014-09-14 12:33:07 +1200
commitff09529ba3a5ec6d8df38a354ca61a6a4d33d3a1 (patch)
tree81bddd901bf668749ad4d56e177abe9448c86aaf /libmproxy/web/app.py
parent6812d304a1a1893480360d5439fa09445ad55a2c (diff)
downloadmitmproxy-ff09529ba3a5ec6d8df38a354ca61a6a4d33d3a1.tar.gz
mitmproxy-ff09529ba3a5ec6d8df38a354ca61a6a4d33d3a1.tar.bz2
mitmproxy-ff09529ba3a5ec6d8df38a354ca61a6a4d33d3a1.zip
Add tornado dependency, serve index file
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"),