feat: add disable option for storage (close #1476)

This commit is contained in:
Noah Hsu
2022-08-11 21:08:50 +08:00
parent af884010d1
commit 74f1154e5e
4 changed files with 101 additions and 0 deletions

View File

@ -61,6 +61,8 @@ func admin(g *gin.RouterGroup) {
storage.POST("/create", handles.CreateStorage)
storage.POST("/update", handles.UpdateStorage)
storage.POST("/delete", handles.DeleteStorage)
storage.POST("/enable", handles.EnableStorage)
storage.POST("/disable", handles.DisableStorage)
driver := g.Group("/driver")
driver.GET("/list", handles.ListDriverItems)