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

@ -15,6 +15,7 @@ import (
"zedshaw.games/webapp/api"
"zedshaw.games/webapp/data"
"zedshaw.games/webapp/config"
"zedshaw.games/webapp/admin"
)
func main() {
@ -36,8 +37,9 @@ func main() {
app.Use(logger.New())
app.Use(recov.New())
api.Setup(app)
data.Setup(config.Settings.Database.Driver, config.Settings.Database.Url)
api.Setup(app)
admin.Setup(app)
// this sets up graceful shutdown
go func() {