Redirect to table admin on bad table name.

main
Zed A. Shaw 2 days ago
parent 52e92a3814
commit da183c453c
  1. 2
      admin/handlers.go

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

Loading…
Cancel
Save