🎨 Sync repo

This commit is contained in:
Liang Ding 2022-07-03 17:11:00 +08:00
parent 8f4aa20f2d
commit 8a587c23e2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 25 additions and 21 deletions

View file

@ -208,7 +208,7 @@ func serveAssets(ginServer *gin.Engine) {
dir := context.Param("dir")
name := context.Param("name")
relativePath := path.Join(dir, "assets", name)
p := filepath.Join(util.WorkspaceDir, "history", relativePath)
p := filepath.Join(util.HistoryDir, relativePath)
http.ServeFile(context.Writer, context.Request, p)
return
})