diff --git a/main b/main index 3fc44c1..7082ff6 100644 --- a/main +++ b/main @@ -229,6 +229,13 @@ async def apiuserinfo(): } return datatemplate +@app.route("/api/loggedin", methods=("GET", "POST")) +async def apiloggedin(): + if request.method == "POST": + data = await request.get_json() + secretKey = data["secretKey"] + get_session(secretKey) + return 200 @app.route("/api/listnotes", methods=("GET", "POST")) async def apilistnotes():