mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Add: route for uploading file
This commit is contained in:
@@ -46,6 +46,13 @@ func InitRouter() *gin.Engine {
|
||||
user.GET("Me", controllers.UserMe)
|
||||
}
|
||||
|
||||
// 文件
|
||||
file := auth.Group("File")
|
||||
{
|
||||
// 当前登录用户信息
|
||||
file.POST("Upload", controllers.FileUpload)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user