mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-28 10:51:57 +08:00
Feat: thumb for shared folder
This commit is contained in:
@@ -214,6 +214,12 @@ func InitMasterRouter() *gin.Engine {
|
||||
middleware.CheckShareUnlocked(),
|
||||
controllers.PreviewShareReadme,
|
||||
)
|
||||
// 获取缩略图
|
||||
share.GET("thumb/:id/:file",
|
||||
middleware.CheckShareUnlocked(),
|
||||
middleware.ShareCanPreview(),
|
||||
controllers.ShareThumb,
|
||||
)
|
||||
}
|
||||
|
||||
// 需要登录保护的
|
||||
|
||||
Reference in New Issue
Block a user