mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-12 19:01:50 +02:00
Change /admin route to /admin-panel (#1)
This commit is contained in:
@ -101,7 +101,7 @@ func adminUserDelete(ctx echo.Context) error {
|
||||
}
|
||||
|
||||
addFlash(ctx, "User has been deleted", "success")
|
||||
return redirect(ctx, "/admin/users")
|
||||
return redirect(ctx, "/admin-panel/users")
|
||||
}
|
||||
|
||||
func adminGistDelete(ctx echo.Context) error {
|
||||
@ -119,7 +119,7 @@ func adminGistDelete(ctx echo.Context) error {
|
||||
}
|
||||
|
||||
addFlash(ctx, "Gist has been deleted", "success")
|
||||
return redirect(ctx, "/admin/gists")
|
||||
return redirect(ctx, "/admin-panel/gists")
|
||||
}
|
||||
|
||||
func adminSyncReposFromFS(ctx echo.Context) error {
|
||||
@ -148,7 +148,7 @@ func adminSyncReposFromFS(ctx echo.Context) error {
|
||||
}
|
||||
syncReposFromFS = false
|
||||
}()
|
||||
return redirect(ctx, "/admin")
|
||||
return redirect(ctx, "/admin-panel")
|
||||
}
|
||||
|
||||
func adminSyncReposFromDB(ctx echo.Context) error {
|
||||
@ -180,5 +180,5 @@ func adminSyncReposFromDB(ctx echo.Context) error {
|
||||
syncReposFromDB = false
|
||||
return
|
||||
}()
|
||||
return redirect(ctx, "/admin")
|
||||
return redirect(ctx, "/admin-panel")
|
||||
}
|
||||
|
Reference in New Issue
Block a user