Initial setup of an admin page that dynamically reflects the DB to create the CRUD stuff.

This commit is contained in:
Zed A. Shaw 2025-07-13 12:28:03 -04:00
parent 02910b8b93
commit 859e3ad0e3
6 changed files with 46 additions and 3 deletions

View file

@ -1,10 +1,13 @@
package admin
import (
"github.com/gofiber/fiber/v2"
)
func GetPageIndex(c *fiber.Ctx) error {
c.Render("admin/index", fiber.Map{})
return c.Render("admin/index", fiber.Map{})
}
func Setup(app *fiber.App) {
app.Get("/admin/", GetIndex);
app.Get("/admin/", GetPageIndex);
}