aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/app.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-07-23 10:28:35 +1200
committerAldo Cortesi <aldo@nullcube.com>2013-07-23 10:28:35 +1200
commit64ce3b358ffed2eb34d6836b57dd7849ce856a09 (patch)
tree657db1643284575fb040efa088eb9ec193405f31 /libmproxy/app.py
parent55f7e8d5b987636e359cefb4e92fb45e3becc9ea (diff)
downloadmitmproxy-64ce3b358ffed2eb34d6836b57dd7849ce856a09.tar.gz
mitmproxy-64ce3b358ffed2eb34d6836b57dd7849ce856a09.tar.bz2
mitmproxy-64ce3b358ffed2eb34d6836b57dd7849ce856a09.zip
Make a start on mitmproxy web app.
Diffstat (limited to 'libmproxy/app.py')
-rw-r--r--libmproxy/app.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/libmproxy/app.py b/libmproxy/app.py
index 18d78b3e..f19eb03b 100644
--- a/libmproxy/app.py
+++ b/libmproxy/app.py
@@ -1,7 +1,14 @@
import flask
mapp = flask.Flask(__name__)
+mapp.debug = True
+
@mapp.route("/")
-def hello():
- return "mitmproxy"
+def index():
+ return flask.render_template("index.html", section="home")
+
+
+@mapp.route("/certs")
+def certs():
+ return flask.render_template("certs.html", section="certs")