aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/app.py
blob: 8ec8ea03b1aa20443f3caa421f4e6a74501c28c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import flask

mapp = flask.Flask(__name__)
mapp.debug = True

def master():
    return flask.request.environ["mitmproxy.master"]

@mapp.route("/")
def index():
    return flask.render_template("index.html", section="home")


@mapp.route("/certs")
def certs():
    return flask.render_template("certs.html", section="certs")