def __init__(self, cert_db, crtsh_checker):
self.cert_db = cert_db
self.crtsh_checker = crtsh_checker
self.jinja_env = jinja2.Environment(
loader=jinja2.FileSystemLoader(
str(Path(__file__).parent.joinpath("templates"))
),
autoescape=True
)
self.url_map = routing.Map([
routing.Rule("/", methods=["GET"], endpoint=self.home),
routing.Rule(
"/add-certificate/",
methods=["POST"],
endpoint=self.add_certificate
),
routing.Rule(
"/create-batch/",
methods=["GET", "POST"],
endpoint=self.create_batch,
),
routing.Rule(
"/batches/",
methods=["GET"],
endpoint=self.list_batches,
),
routing.Rule(
"/batch/<batch_id>/",
methods=["GET"],
endpoint=self.batch,
),
routing.Rule(
"/cablint/",
methods=["GET"],
endpoint=self.cablint,
),
routing.Rule(
"/zlint/",
methods=["GET"],
endpoint=self.zlint,
),
])
评论列表
文章目录