before refractoring back to single forms
parent
8dbc6d5129
commit
63e2a54402
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue