feat: batch reload all storages (close #2762 pr #2775)

This commit is contained in:
BoYanZh
2022-12-21 19:21:18 +08:00
committed by GitHub
parent 3a41b929c9
commit 3af23f6792
2 changed files with 35 additions and 0 deletions

View File

@ -71,6 +71,7 @@ func admin(g *gin.RouterGroup) {
storage.POST("/delete", handles.DeleteStorage)
storage.POST("/enable", handles.EnableStorage)
storage.POST("/disable", handles.DisableStorage)
storage.POST("/load_all", handles.LoadAllStorages)
driver := g.Group("/driver")
driver.GET("/list", handles.ListDriverInfo)