This commit is contained in:
cdle
2023-06-07 15:11:14 +08:00
parent ad6208bc43
commit 90f302a682
6 changed files with 217 additions and 1 deletions
+1
View File
@@ -48,6 +48,7 @@ func init() {
// Server.Use(gin.Recovery())
Server.Use(Cors())
Server.Use(gzip.Gzip(gzip.DefaultCompression))
Server.GET("/api/file/:filename", FindFile)
Server.NoRoute(func(c *gin.Context) {
if c.Request.URL.Path != "/api/web_chat" {
logs.Debug(c.Request.URL.Path)