Feat: preview file in dashboard

This commit is contained in:
HFO4
2020-03-08 13:53:13 +08:00
parent 27c0b6e886
commit 768ffa24ec
3 changed files with 122 additions and 0 deletions

View File

@@ -379,6 +379,14 @@ func InitMasterRouter() *gin.Engine {
user.PATCH("ban/:id", controllers.AdminBanUser)
}
file := admin.Group("file")
{
// 列出文件
file.POST("list", controllers.AdminListFile)
// 预览文件
file.GET("preview/:id", controllers.AdminGetFile)
}
}
// 用户