Initial setup of an admin page that dynamically reflects the DB to create the CRUD stuff.
This commit is contained in:
parent
02910b8b93
commit
859e3ad0e3
6 changed files with 46 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue