enabled tab switching

This commit is contained in:
2024-03-03 04:19:57 +00:00
parent ea4bf43e5e
commit 9b2caddeb4
12 changed files with 275 additions and 119 deletions

12
main.go
View File

@@ -12,6 +12,7 @@ import (
"time"
"github.com/innocuous-symmetry/moving-mgmt/db"
"github.com/innocuous-symmetry/moving-mgmt/routes"
"github.com/jritsema/gotoolbox"
"github.com/jritsema/gotoolbox/web"
@@ -49,14 +50,9 @@ func main() {
// router.Handle("/company/add", web.Action(companyAdd))
// router.Handle("/company/add/", web.Action(companyAdd))
// router.Handle("/company/edit", web.Action(companyEdit))
// router.Handle("/company/edit/", web.Action(companyEdit))
// router.Handle("/company", web.Action(companies))
// router.Handle("/company/", web.Action(companies))
router.Handle("/", web.Action(index))
router.Handle("/index.html", web.Action(index))
router.Handle("/", web.Action(routes.HomePage))
router.Handle("/items", web.Action(routes.Items(html).GetAll))
router.Handle("/boxes", web.Action(routes.Boxes(html).GetAll))
//logging/tracing
nextRequestID := func() string {