Add: route for uploading file

This commit is contained in:
HFO4
2019-11-15 18:12:34 +08:00
parent 71e668c005
commit d86a3533ca
4 changed files with 44 additions and 0 deletions

View File

@@ -46,6 +46,13 @@ func InitRouter() *gin.Engine {
user.GET("Me", controllers.UserMe)
}
// 文件
file := auth.Group("File")
{
// 当前登录用户信息
file.POST("Upload", controllers.FileUpload)
}
}
}