mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: able to upload empty file
This commit is contained in:
@@ -50,7 +50,7 @@ func InitRouter() *gin.Engine {
|
||||
auth := v3.Group("")
|
||||
auth.Use(middleware.AuthRequired())
|
||||
{
|
||||
// 用户类
|
||||
// 用户
|
||||
user := auth.Group("User")
|
||||
{
|
||||
// 当前登录用户信息
|
||||
@@ -64,6 +64,13 @@ func InitRouter() *gin.Engine {
|
||||
file.POST("Upload", controllers.FileUploadStream)
|
||||
}
|
||||
|
||||
// 目录
|
||||
directory := auth.Group("Directory")
|
||||
{
|
||||
// 文件上传
|
||||
directory.PUT("", controllers.Ping)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user