钟志权 преди 1 година
родител
ревизия
a3011bf468
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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 {