diff --git a/main.py b/main.py index 9b3bd09..497fc34 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ -from flask import Flask, request, make_response +from flask import Flask, request, make_response, render_template from dotenv import load_dotenv from flask_sock import Sock from glob import glob @@ -129,6 +129,10 @@ def websocket(ws): if operation == "usernames": # TODO ws.send(json.dumps({"1": "Mathias"})) +@app.route("/") +def index(): + return render_template("index.html") + @app.route("/user/info", methods=["POST", "OPTIONS"]) def user_info(): if request.method == "OPTIONS": return make_resp() diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..f35a7b6 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,20 @@ + + +
+ + +If you see this page, your Obsidian Sync server server is successfully installed and working.
+Available at mathias/obsidian_freesync
+ + \ No newline at end of file