forked from rDrama/rDrama
fdfd
parent
90c8129128
commit
8e7294be22
|
@ -135,8 +135,8 @@ def login_post():
|
||||||
@app.get("/@me")
|
@app.get("/@me")
|
||||||
@auth_required
|
@auth_required
|
||||||
def me(v):
|
def me(v):
|
||||||
if request.headers.get("Authorization"): v.json
|
if request.headers.get("Authorization"): return v.json
|
||||||
else: redirect(v.url)
|
else: return redirect(v.url)
|
||||||
|
|
||||||
|
|
||||||
@app.post("/logout")
|
@app.post("/logout")
|
||||||
|
|
Loading…
Reference in New Issue