Feat: archive download and sign temp url

This commit is contained in:
HFO4
2019-12-13 11:41:22 +08:00
parent 012281c41f
commit cf9416ef88
7 changed files with 327 additions and 136 deletions

View File

@@ -102,7 +102,7 @@ func InitRouter() *gin.Engine {
// 取得文件外链
file.GET("source/:id", controllers.GetSource)
// 测试用:压缩文件和目录并下載
file.GET("archive", controllers.ArchiveAndDownload)
file.POST("archive", controllers.ArchiveAndDownload)
}
// 目录