Fix admin panel url

This commit is contained in:
Thomas Miceli 2023-04-17 00:35:04 +02:00
parent dba3f4be44
commit 8534a4880b
No known key found for this signature in database
GPG key ID: D86C6F6390AF050F

View file

@ -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)
} }