Feat: adapt new uploader for upyun policy

This commit is contained in:
HFO4
2022-03-20 11:27:43 +08:00
parent 9e5713b139
commit d3016b60af
3 changed files with 59 additions and 63 deletions

View File

@@ -258,7 +258,8 @@ func InitMasterRouter() *gin.Engine {
)
// 又拍云策略上传回调
callback.POST(
"upyun/:key",
"upyun/:sessionID",
middleware.UseUploadSession("upyun"),
middleware.UpyunCallbackAuth(),
controllers.UpyunCallback,
)