Parcourir la source

修改 模块配置

钟志权 il y a 1 an
Parent
commit
a3011bf468
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      knife4gin/knife4gin.go

+ 3 - 3
knife4gin/knife4gin.go

@@ -37,9 +37,9 @@ func Handler(option *Option) gin.HandlerFunc {
 	if err != nil {
 		log.Printf("not found docJson in " + option.DocJsonPath)
 	}
-	indexPath := option.RelativePath + "index.html"
-	servicesPath := option.RelativePath + "services.json"
-	docJsonPath := option.RelativePath + "doc.json"
+	indexPath := option.RelativePath + "/index.html"
+	servicesPath := option.RelativePath + "/services.json"
+	docJsonPath := option.RelativePath + "/doc.json"
 
 	return func(c *gin.Context) {
 		switch c.Request.RequestURI {