mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: preview shared text/doc file
This commit is contained in:
@@ -176,6 +176,10 @@ func InitMasterRouter() *gin.Engine {
|
||||
share.POST("download/:id", controllers.GetShareDownload)
|
||||
// 预览分享文件
|
||||
share.GET("preview/:id", controllers.PreviewShare)
|
||||
// 取得Office文档预览地址
|
||||
share.GET("doc/:id", controllers.GetShareDocPreview)
|
||||
// 获取文本文件内容
|
||||
share.GET("content/:id", controllers.PreviewShareText)
|
||||
}
|
||||
|
||||
// 需要登录保护的
|
||||
|
||||
Reference in New Issue
Block a user