mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Feat: API for receiviing chunk data
This commit is contained in:
@@ -504,8 +504,10 @@ func InitMasterRouter() *gin.Engine {
|
||||
// 文件
|
||||
file := auth.Group("file", middleware.HashID(hashid.FileID))
|
||||
{
|
||||
// 文件上传
|
||||
file.POST("upload/:sessionId/:index", controllers.FileUpload)
|
||||
// 创建上传会话
|
||||
file.PUT("upload/session", controllers.GetUploadCredential)
|
||||
file.PUT("upload", controllers.GetUploadCredential)
|
||||
// 更新文件
|
||||
file.PUT("update/:id", controllers.PutContent)
|
||||
// 创建空白文件
|
||||
|
||||
Reference in New Issue
Block a user