chore: add vs dist server for monaco -- change path

This commit is contained in:
engigu
2026-03-11 11:50:06 +08:00
parent e8f3766981
commit db2bbd5d4d
3 changed files with 7 additions and 7 deletions
-5
View File
@@ -37,11 +37,6 @@ func initStaticRoutes(root *gin.RouterGroup) {
assetsGroup.Use(cacheControl("public, max-age=31536000, immutable")) // 带哈希的资源缓存
assetsGroup.StaticFS("/", http.FS(mustSubFS(staticFS, "assets")))
// Monaco Editor (vs) 静态资源
vsGroup := root.Group("/vs")
vsGroup.Use(cacheControl("public, max-age=31536000, immutable"))
vsGroup.StaticFS("/", http.FS(mustSubFS(staticFS, "vs")))
// logo.svg 短缓存实现
root.GET("/logo.svg", func(ctx *gin.Context) {
data, err := static.ReadFile("logo.svg")