mitmproxy/libmproxy/app.py

17 lines
324 B
Python
Raw Normal View History

2013-03-24 20:20:26 +00:00
import flask
mapp = flask.Flask(__name__)
2013-07-22 22:28:35 +00:00
mapp.debug = True
def master():
return flask.request.environ["mitmproxy.master"]
2013-03-24 20:20:26 +00:00
@mapp.route("/")
2013-07-22 22:28:35 +00:00
def index():
return flask.render_template("index.html", section="home")
@mapp.route("/certs")
def certs():
return flask.render_template("certs.html", section="certs")