fdfd
This commit is contained in:
parent
3a4a6e7523
commit
f2934cc93b
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ def login_post():
|
|||
@app.get("/@me")
|
||||
@auth_required
|
||||
def me(v):
|
||||
if request.headers.get("Authorization"): v.json
|
||||
else: redirect(v.url)
|
||||
if request.headers.get("Authorization"): return v.json
|
||||
else: return redirect(v.url)
|
||||
|
||||
|
||||
@app.post("/logout")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue