feat: update reset thumbnail feature (#2854)

* update reset thumbnail feature

* consolidate supported thumbnail extensions into site config; remove dedicated API

* allow patching thumb ; remove Reset Thumbnail API

* fix code formatting

---------

Co-authored-by: Aaron Liu <abslant.liu@gmail.com>
This commit is contained in:
Mason Liu
2025-09-23 11:24:38 +08:00
committed by GitHub
parent 440ab775b8
commit 668b542c59
4 changed files with 62 additions and 1 deletions

View File

@@ -618,7 +618,7 @@ func initMasterRouter(dep dependency.Dep) *gin.Engine {
controllers.ServeEntity,
)
}
// 获取缩略图
// get thumb
file.GET("thumb",
middleware.ContextHint(),
controllers.FromQuery[explorer.FileThumbService](explorer.FileThumbParameterCtx{}),