Redirect to table admin on bad table name.

This commit is contained in:
Zed A. Shaw 2025-07-27 23:33:28 -04:00
parent 52e92a3814
commit da183c453c

View file

@ -21,7 +21,7 @@ func GetApiTableIndex(c *fiber.Ctx) error {
func GetApiSelectAll(c *fiber.Ctx) error {
table := c.Params("table")
if table == "" { return c.Redirect("/admin/") }
if table == "" { return c.Redirect("/admin/table/") }
type_is := data.Models()[table]
page := c.QueryInt("page", 0)