api_nameList.py 文件源码

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

项目:PyKI 作者: pykiki 项目源码 文件源码
def index():
    '''
        Index page for listing all possibilities
    '''

    htmlpage = '''
    <html>
        <HEAD>
            <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        </HEAD>
        <BODY>
            <div class='container'>
                <h1>
                    Welcome to flask tests, here are links to test func calls:
                </h1>
                <p>
                    <a href='https://"+lhost+":"+str(lport)+"/listCert'> List of certificate in the pki database </a>
                </p>
                <p>
                    <a href='https://"+lhost+":"+str(lport)+"/help'> PKI documentation</a>
                </p>
            </div>

        </BODY>
    </html>
    '''
    # allow us to modify headers
    resp = make_response(htmlpage)
    resp.headers['Server'] = 'PyKI amaibach API'
    return(resp)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号