Redirect to table admin on bad table name.
This commit is contained in:
parent
52e92a3814
commit
da183c453c
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ func GetApiTableIndex(c *fiber.Ctx) error {
|
||||||
|
|
||||||
func GetApiSelectAll(c *fiber.Ctx) error {
|
func GetApiSelectAll(c *fiber.Ctx) error {
|
||||||
table := c.Params("table")
|
table := c.Params("table")
|
||||||
if table == "" { return c.Redirect("/admin/") }
|
if table == "" { return c.Redirect("/admin/table/") }
|
||||||
type_is := data.Models()[table]
|
type_is := data.Models()[table]
|
||||||
|
|
||||||
page := c.QueryInt("page", 0)
|
page := c.QueryInt("page", 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue