before refractoring back to single forms
parent
8dbc6d5129
commit
63e2a54402
|
@ -5,7 +5,7 @@ tmp_dir = "tmp"
|
||||||
[build]
|
[build]
|
||||||
args_bin = []
|
args_bin = []
|
||||||
bin = "./tmp/main"
|
bin = "./tmp/main"
|
||||||
cmd = "go build -o ./tmp/main ."
|
cmd = "templ generate && go build -o ./tmp/main ."
|
||||||
delay = 1000
|
delay = 1000
|
||||||
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
|
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
|
||||||
exclude_file = []
|
exclude_file = []
|
||||||
|
@ -21,7 +21,7 @@ tmp_dir = "tmp"
|
||||||
poll = false
|
poll = false
|
||||||
poll_interval = 0
|
poll_interval = 0
|
||||||
post_cmd = ["rm tmp/main"]
|
post_cmd = ["rm tmp/main"]
|
||||||
pre_cmd = ["templ generate"]
|
pre_cmd = []
|
||||||
rerun = false
|
rerun = false
|
||||||
rerun_delay = 500
|
rerun_delay = 500
|
||||||
send_interrupt = false
|
send_interrupt = false
|
||||||
|
|
|
@ -13,12 +13,18 @@ func GroupWeb(router *gin.Engine) *gin.Engine {
|
||||||
router.POST("/login.html", postLogin)
|
router.POST("/login.html", postLogin)
|
||||||
router.GET("/profile/", getProfile)
|
router.GET("/profile/", getProfile)
|
||||||
router.GET("/empty.html", getEmpty)
|
router.GET("/empty.html", getEmpty)
|
||||||
subnetGroup := router.Group("/subnets")
|
subnetsGroup := router.Group("/subnets")
|
||||||
subnetGroup.GET("/", getSubnetsPage)
|
subnetsGroup.GET("/", getSubnetsPage)
|
||||||
subnetGroup.GET("/subnets/details/:id", getSubnetDetails)
|
subnetsGroup.GET("/new")
|
||||||
subnetGroup.GET("/subnets/details/:id/:field", getSubnetDetailsField)
|
subnetsGroup.GET("/details/:id")
|
||||||
subnetGroup.POST("/subnets/details/:id/:field", postSubnetDetailsField)
|
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
|
return router
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue