remove test

This commit is contained in:
shoopea
2024-11-17 19:21:17 +01:00
parent b83b0e8c4f
commit 3bd57a4e98
2 changed files with 18 additions and 19 deletions

View File

@@ -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))