diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-07-23 10:28:35 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-07-23 10:28:35 +1200 |
commit | 64ce3b358ffed2eb34d6836b57dd7849ce856a09 (patch) | |
tree | 657db1643284575fb040efa088eb9ec193405f31 /libmproxy/app.py | |
parent | 55f7e8d5b987636e359cefb4e92fb45e3becc9ea (diff) | |
download | mitmproxy-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.py | 11 |
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") |