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)
评论列表
文章目录