diff --git a/admin.go b/admin.go index 870e8ce..4e1aa6d 100644 --- a/admin.go +++ b/admin.go @@ -3,7 +3,6 @@ package main import ( "context" "embed" - "fmt" "html/template" "io/fs" "net/http" @@ -125,22 +124,22 @@ func (a *AdminConfig) Run() { }) } }) - - r.GET("/test", func(c *gin.Context) { - res := make(map[string]string) - for k, v := range cfg.box { - if err := v.Open(); err != nil { - res[k] = fmt.Sprintf("%s", err) - } else { - res[k] = "ok" + /* + r.GET("/test", func(c *gin.Context) { + res := make(map[string]string) + for k, v := range cfg.box { + if err := v.Open(); err != nil { + res[k] = fmt.Sprintf("%s", err) + } else { + res[k] = "ok" + } + v.Close() } - v.Close() - } - c.JSON(http.StatusOK, gin.H{ - "message": res, + c.JSON(http.StatusOK, gin.H{ + "message": res, + }) }) - }) - + */ fsys, _ := fs.Sub(assets, "assets/static") r.StaticFS("/assets", http.FS(fsys)) diff --git a/version.go b/version.go index 270ff14..995dd64 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "6ed3897" +var githash = "b83b0e8" var branch = "master" -var buildstamp = "2024-11-17_17:48:44" -var commits = "103" -var version = "6ed3897-b103 - 2024-11-17_17:48:44" +var buildstamp = "2024-11-17_17:56:49" +var commits = "104" +var version = "b83b0e8-b104 - 2024-11-17_17:56:49"