Feat: download / preview files for shared folder

This commit is contained in:
HFO4
2020-01-30 14:22:03 +08:00
parent 0edbbfc9ea
commit b1a9943b0c
5 changed files with 47 additions and 8 deletions

View File

@@ -173,7 +173,7 @@ func InitMasterRouter() *gin.Engine {
// 获取分享
share.GET("info/:id", controllers.GetShare)
// 创建文件下载会话
share.POST("download/:id",
share.PUT("download/:id",
middleware.CheckShareUnlocked(),
middleware.BeforeShareDownload(),
controllers.GetShareDownload,