summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.go b/main.go
index 5750da1..7bcdd2b 100644
--- a/main.go
+++ b/main.go
@@ -33,6 +33,15 @@ func makeServer(cfg *web.ServerConfig) *gin.Engine {
33 acme.DELETE("/:id", controllers.DeleteAcmeChallenge) 33 acme.DELETE("/:id", controllers.DeleteAcmeChallenge)
34 } 34 }
35 35
36 dns := router.Group("/dns")
37 dns.Use(middleware.DnsManageAuthMiddleware)
38 {
39 dns.GET("", controllers.DnsManageRoot)
40 dns.GET("/view", controllers.DnsViews)
41 dns.GET("/zone", controllers.DnsZones)
42 dns.GET("/zone/:view/:name", controllers.DnsZoneDetails)
43 }
44
36 return router 45 return router
37} 46}
38 47