mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Merge branch 'fix-trailing-slashes' into pu
This commit is contained in:
commit
ddc51dd5eb
14 changed files with 58 additions and 58 deletions
|
@ -590,8 +590,8 @@ async def account(request: Request, username: str):
|
|||
return render_template(request, "account/show.html", context)
|
||||
|
||||
|
||||
@router.get("/accounts/")
|
||||
@auth_required(True, redirect="/accounts/")
|
||||
@router.get("/accounts")
|
||||
@auth_required(True, redirect="/accounts")
|
||||
@account_type_required({account_type.TRUSTED_USER,
|
||||
account_type.DEVELOPER,
|
||||
account_type.TRUSTED_USER_AND_DEV})
|
||||
|
@ -600,8 +600,8 @@ async def accounts(request: Request):
|
|||
return render_template(request, "account/search.html", context)
|
||||
|
||||
|
||||
@router.post("/accounts/")
|
||||
@auth_required(True, redirect="/accounts/")
|
||||
@router.post("/accounts")
|
||||
@auth_required(True, redirect="/accounts")
|
||||
@account_type_required({account_type.TRUSTED_USER,
|
||||
account_type.DEVELOPER,
|
||||
account_type.TRUSTED_USER_AND_DEV})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue