forked from MarseyWorld/MarseyWorld
master
parent
458238b958
commit
7778911129
|
@ -25,7 +25,7 @@ beams_client = PushNotifications(
|
|||
@app.get("/post/<pid>/<anything>/<cid>")
|
||||
@app.get("/logged_out/comment/<cid>")
|
||||
@app.get("/logged_out/post/<pid>/<anything>/<cid>")
|
||||
@auth_required
|
||||
@auth_desired
|
||||
def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
||||
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}")
|
||||
|
|
|
@ -121,7 +121,7 @@ def notifications(v):
|
|||
|
||||
@app.get("/")
|
||||
@app.get("/logged_out")
|
||||
@auth_required
|
||||
@auth_desired
|
||||
def front_all(v):
|
||||
|
||||
if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect(f"/logged_out{request.full_path}")
|
||||
|
|
|
@ -96,7 +96,7 @@ def submit_get(v):
|
|||
@app.get("/post/<pid>/<anything>")
|
||||
@app.get("/logged_out/post/<pid>")
|
||||
@app.get("/logged_out/post/<pid>/<anything>")
|
||||
@auth_required
|
||||
@auth_desired
|
||||
def post_id(pid, anything=None, v=None):
|
||||
if not v or v.oldsite: template2 = ''
|
||||
else: template2 = 'CHRISTMAS/'
|
||||
|
|
|
@ -611,7 +611,7 @@ def visitors(v):
|
|||
|
||||
@app.get("/@<username>")
|
||||
@app.get("/logged_out/@<username>")
|
||||
@auth_required
|
||||
@auth_desired
|
||||
def u_username(username, v=None):
|
||||
|
||||
|
||||
|
@ -732,7 +732,7 @@ def u_username(username, v=None):
|
|||
|
||||
@app.get("/@<username>/comments")
|
||||
@app.get("/logged_out/@<username>/comments")
|
||||
@auth_required
|
||||
@auth_desired
|
||||
def u_username_comments(username, v=None):
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue