mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
feat(thumb): generator settings and test button
This commit is contained in:
@@ -98,6 +98,17 @@ func AdminSendTestMail(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
// AdminTestThumbGenerator Tests thumb generator
|
||||
func AdminTestThumbGenerator(c *gin.Context) {
|
||||
var service admin.ThumbGeneratorTestService
|
||||
if err := c.ShouldBindJSON(&service); err == nil {
|
||||
res := service.Test(c)
|
||||
c.JSON(200, res)
|
||||
} else {
|
||||
c.JSON(200, ErrorResponse(err))
|
||||
}
|
||||
}
|
||||
|
||||
// AdminTestAria2 测试aria2连接
|
||||
func AdminTestAria2(c *gin.Context) {
|
||||
var service admin.Aria2TestService
|
||||
|
||||
Reference in New Issue
Block a user