Browse Source

备案号

k.zhang 2 years ago
parent
commit
366e5c3eba
2 changed files with 3 additions and 1 deletions
  1. 2 0
      a.html
  2. 1 1
      routers/router.go

+ 2 - 0
a.html

@@ -0,0 +1,2 @@
+<a href="https://beian.miit.gov.cn/" target="_blank">我的备案号</a>
+<a href="https://beian.miit.gov.cn/" target="_blank">鲁ICP备15045380号-4</a>

+ 1 - 1
routers/router.go

@@ -20,7 +20,7 @@ func InitRouter() {
 		r.Use(TlsHandler())
 	}
 
-	r.GET("/", func(c *gin.Context) { c.File("./root.txt") })
+	r.GET("/", func(c *gin.Context) { c.File("./a.html") })
 	r.GET("/root.txt", func(c *gin.Context) { c.File("./root.txt") })
 	r2 := r.Group("/")
 	{