mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-28 10:51:57 +08:00
Feat: create upload session and pre-upload check
This commit is contained in:
@@ -506,8 +506,8 @@ func InitMasterRouter() *gin.Engine {
|
||||
{
|
||||
// 文件上传
|
||||
file.POST("upload", controllers.FileUploadStream)
|
||||
// 获取上传凭证
|
||||
file.GET("upload/credential", controllers.GetUploadCredential)
|
||||
// 创建上传会话
|
||||
file.PUT("upload/session", controllers.GetUploadCredential)
|
||||
// 更新文件
|
||||
file.PUT("update/:id", controllers.PutContent)
|
||||
// 创建空白文件
|
||||
|
||||
Reference in New Issue
Block a user