forked from Ailur/burgernotes-server
BETA: Loggedin
This commit is contained in:
parent
5f394198f5
commit
29df087261
7
main
7
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():
|
||||
|
|
Loading…
Reference in New Issue