wp
workabee 2 weeks ago
parent 2568bdbf7a
commit 0f98f37539

@ -42,7 +42,7 @@ func NewRouter() *gin.Engine {
} }
//静态文件 //静态文件
r.StaticFS("/static", http.Dir("./runtime")) auth.StaticFS("/static", http.Dir("./runtime"))
r.NoRoute(func(c *gin.Context) { r.NoRoute(func(c *gin.Context) {
c.JSON(http.StatusNotFound, gin.H{ c.JSON(http.StatusNotFound, gin.H{
"status": 1, "status": 1,

Loading…
Cancel
Save