tracker.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:revocation-tracker 作者: alex 项目源码 文件源码
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,
            ),
        ])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号