mirror of
https://github.com/YunoHost/check-http.git
synced 2024-09-03 19:56:42 +02:00
Add skeleton for check-smtp
This commit is contained in:
parent
faa81c1ee3
commit
d23290299e
1 changed files with 10 additions and 0 deletions
10
server.py
10
server.py
|
@ -259,6 +259,16 @@ async def check_ports(request):
|
||||||
return json_response({"status": "ok", "ports": result})
|
return json_response({"status": "ok", "ports": result})
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/check-smtp/", methods=["POST"])
|
||||||
|
async def check_smtp(request):
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
|
||||||
|
return json_reponse({"status": "error",
|
||||||
|
"code": "error_not_implemented_yet",
|
||||||
|
"content": "This is not yet implemented"})
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
async def main(request):
|
async def main(request):
|
||||||
return html("You aren't really supposed to use this website using your browser.<br><br>It's a small server to check if a YunoHost instance can be reached by http before trying to instal a LE certificate.")
|
return html("You aren't really supposed to use this website using your browser.<br><br>It's a small server to check if a YunoHost instance can be reached by http before trying to instal a LE certificate.")
|
||||||
|
|
Loading…
Reference in a new issue