We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dce15c commit d879d56Copy full SHA for d879d56
go.mod
@@ -5,7 +5,6 @@ go 1.21
5
require (
6
github.com/gin-gonic/gin v1.9.1
7
github.com/redis/go-redis/v9 v9.5.1
8
- gopkg.in/yaml.v2 v2.4.0
9
)
10
11
process/webutil/webutil.go
@@ -4,6 +4,7 @@ import (
4
"fmt"
"github.com/gin-gonic/gin"
"github.com/soxft/busuanzi/app/middleware"
+ "github.com/soxft/busuanzi/config"
"github.com/spf13/viper"
"log"
"net/url"
@@ -45,6 +46,7 @@ func Init() {
45
46
}
47
r.Use(gin.Recovery())
48
r.Use(middleware.Cors())
49
+ r.LoadHTMLFiles(config.DistPath + "/index.html")
50
51
// routers
52
initRoute(r)
0 commit comments