mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 数据历史文档中支持操作类型过滤 https://github.com/siyuan-note/siyuan/issues/5754
This commit is contained in:
parent
a165cac78e
commit
84b0cf7033
2 changed files with 16 additions and 10 deletions
|
|
@ -204,11 +204,8 @@ func serveAssets(ginServer *gin.Engine) {
|
|||
http.ServeFile(context.Writer, context.Request, p)
|
||||
return
|
||||
})
|
||||
ginServer.GET("/history/:dir/assets/*name", model.CheckAuth, func(context *gin.Context) {
|
||||
dir := context.Param("dir")
|
||||
name := context.Param("name")
|
||||
relativePath := path.Join(dir, "assets", name)
|
||||
p := filepath.Join(util.HistoryDir, relativePath)
|
||||
ginServer.GET("/history/*path", model.CheckAuth, func(context *gin.Context) {
|
||||
p := filepath.Join(util.HistoryDir, context.Param("path"))
|
||||
http.ServeFile(context.Writer, context.Request, p)
|
||||
return
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue