forked from rDrama/rDrama
redirect /shop to /shop/awards
parent
573d6a6fc6
commit
1a200a975f
|
@ -20,8 +20,14 @@ from files.__main__ import app, cache, limiter
|
||||||
|
|
||||||
from .front import frontlist
|
from .front import frontlist
|
||||||
|
|
||||||
|
@app.get("/shop")
|
||||||
|
@limiter.limit(DEFAULT_RATELIMIT)
|
||||||
|
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
|
||||||
|
@auth_required
|
||||||
|
def shop_awards(v:User):
|
||||||
|
return redirect('/shop/awards')
|
||||||
|
|
||||||
@app.get("/shop/awards")
|
@app.get("/shop/awards")
|
||||||
@app.get("/settings/shop")
|
|
||||||
@limiter.limit(DEFAULT_RATELIMIT)
|
@limiter.limit(DEFAULT_RATELIMIT)
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
|
||||||
@auth_required
|
@auth_required
|
||||||
|
|
Loading…
Reference in New Issue