|
@@ -37,9 +37,9 @@ func Handler(option *Option) gin.HandlerFunc {
|
|
if err != nil {
|
|
if err != nil {
|
|
log.Printf("not found docJson in " + option.DocJsonPath)
|
|
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) {
|
|
return func(c *gin.Context) {
|
|
switch c.Request.RequestURI {
|
|
switch c.Request.RequestURI {
|