From d23290299ec7d49c6658005c3cd98d35c5a58349 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 29 Jul 2019 22:34:46 +0200 Subject: [PATCH] Add skeleton for check-smtp --- server.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server.py b/server.py index 13ad57d..ae864b5 100644 --- a/server.py +++ b/server.py @@ -259,6 +259,16 @@ async def check_ports(request): 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("/") async def main(request): return html("You aren't really supposed to use this website using your browser.

It's a small server to check if a YunoHost instance can be reached by http before trying to instal a LE certificate.")