mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-07 23:31:10 +08:00
删除工作流时清理历史执行
This commit is contained in:
@@ -81,16 +81,16 @@ func Register(r *gin.Engine) {
|
||||
}
|
||||
|
||||
// 1. 提供静态文件服务
|
||||
r.StaticFS("/static", http.Dir("./frontend/static")) // 静态资源路径
|
||||
r.StaticFS("/auto-deploy/static", http.Dir("./frontend/static")) // 静态资源路径
|
||||
r.StaticFS("/static", http.Dir("./build/static")) // 静态资源路径
|
||||
r.StaticFS("/auto-deploy/static", http.Dir("./build/static")) // 静态资源路径
|
||||
// 返回 favicon.ico
|
||||
r.GET("/favicon.ico", func(c *gin.Context) {
|
||||
c.File("./frontend/favicon.ico")
|
||||
c.File("./build/favicon.ico")
|
||||
})
|
||||
|
||||
// 3. 前端路由托管:匹配所有其他路由并返回 index.html
|
||||
r.NoRoute(func(c *gin.Context) {
|
||||
c.File("./frontend/index.html")
|
||||
c.File("./build/index.html")
|
||||
})
|
||||
// v2 := r.Group("/v2")
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user