before refractoring back to single forms

main
Johannes Bülow 2024-02-24 11:30:41 +01:00
parent 8dbc6d5129
commit 63e2a54402
Signed by untrusted user who does not match committer: jmb
GPG Key ID: B56971CF7B8F83A6
2 changed files with 14 additions and 8 deletions

View File

@ -5,7 +5,7 @@ tmp_dir = "tmp"
[build]
args_bin = []
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ."
cmd = "templ generate && go build -o ./tmp/main ."
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_file = []
@ -21,7 +21,7 @@ tmp_dir = "tmp"
poll = false
poll_interval = 0
post_cmd = ["rm tmp/main"]
pre_cmd = ["templ generate"]
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = false

View File

@ -13,12 +13,18 @@ func GroupWeb(router *gin.Engine) *gin.Engine {
router.POST("/login.html", postLogin)
router.GET("/profile/", getProfile)
router.GET("/empty.html", getEmpty)
subnetGroup := router.Group("/subnets")
subnetGroup.GET("/", getSubnetsPage)
subnetGroup.GET("/subnets/details/:id", getSubnetDetails)
subnetGroup.GET("/subnets/details/:id/:field", getSubnetDetailsField)
subnetGroup.POST("/subnets/details/:id/:field", postSubnetDetailsField)
subnetsGroup := router.Group("/subnets")
subnetsGroup.GET("/", getSubnetsPage)
subnetsGroup.GET("/new")
subnetsGroup.GET("/details/:id")
subnetsGroup.GET("/edit/:id")
subnetsGroup.POST("/edit/:id")
addressGroup := router.Group("/addresses")
addressGroup.GET("/", getSubnetsPage)
addressGroup.GET("/new")
addressGroup.GET("/details/:id")
addressGroup.GET("/edit/:id")
addressGroup.POST("/edit/:id")
return router
}