BETA: Loggedin

This commit is contained in:
Tracker-Friendly 2024-05-24 19:24:37 +01:00
parent 5f394198f5
commit 29df087261
1 changed files with 7 additions and 0 deletions

7
main
View File

@ -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():