mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-18 16:17:13 +02:00
Fix admin panel url
This commit is contained in:
@ -64,7 +64,7 @@ func adminUsers(ctx echo.Context) error {
|
|||||||
return errorRes(500, "Cannot get users", err)
|
return errorRes(500, "Cannot get users", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = paginate(ctx, data, pageInt, 10, "data", "admin/users", 1); err != nil {
|
if err = paginate(ctx, data, pageInt, 10, "data", "admin-panel/users", 1); err != nil {
|
||||||
return errorRes(404, "Page not found", nil)
|
return errorRes(404, "Page not found", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ func adminGists(ctx echo.Context) error {
|
|||||||
return errorRes(500, "Cannot get gists", err)
|
return errorRes(500, "Cannot get gists", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = paginate(ctx, data, pageInt, 10, "data", "admin/gists", 1); err != nil {
|
if err = paginate(ctx, data, pageInt, 10, "data", "admin-panel/gists", 1); err != nil {
|
||||||
return errorRes(404, "Page not found", nil)
|
return errorRes(404, "Page not found", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user