mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-30 13:31:57 +08:00
Feat: readme in shared folder
This commit is contained in:
@@ -209,6 +209,11 @@ func InitMasterRouter() *gin.Engine {
|
||||
middleware.BeforeShareDownload(),
|
||||
controllers.ArchiveShare,
|
||||
)
|
||||
// 获取README文本文件内容
|
||||
share.GET("readme/:id",
|
||||
middleware.CheckShareUnlocked(),
|
||||
controllers.PreviewShareReadme,
|
||||
)
|
||||
}
|
||||
|
||||
// 需要登录保护的
|
||||
|
||||
Reference in New Issue
Block a user