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
4
main.go
4
main.go
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue