testicles
This commit is contained in:
parent
2b9b9494f3
commit
1067a0d476
6 changed files with 8 additions and 8 deletions
|
@ -131,13 +131,13 @@ def notifications(v):
|
|||
)
|
||||
|
||||
|
||||
@app.get("/")
|
||||
@app.get("/logged_out")
|
||||
@app.get("/s/<sub>")
|
||||
@app.get("/logged_out/s/<sub>")
|
||||
@app.get("/", subdomain="<subdomain>")
|
||||
@app.get("/logged_out", subdomain="<subdomain>")
|
||||
@app.get("/s/<sub>", subdomain="<subdomain>")
|
||||
@app.get("/logged_out/s/<sub>", subdomain="<subdomain>")
|
||||
@limiter.limit("3/second;30/minute;1000/hour;5000/day")
|
||||
@auth_desired
|
||||
def front_all(v, sub=None):
|
||||
def front_all(v, sub=None, subdomain=None):
|
||||
if sub: sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none()
|
||||
|
||||
if request.path.startswith('/s/') and not sub: abort(404)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue