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 ( import (
"context" "context"
"embed" "embed"
"fmt"
"html/template" "html/template"
"io/fs" "io/fs"
"net/http" "net/http"
@ -125,22 +124,22 @@ func (a *AdminConfig) Run() {
}) })
} }
}) })
/*
r.GET("/test", func(c *gin.Context) { r.GET("/test", func(c *gin.Context) {
res := make(map[string]string) res := make(map[string]string)
for k, v := range cfg.box { for k, v := range cfg.box {
if err := v.Open(); err != nil { if err := v.Open(); err != nil {
res[k] = fmt.Sprintf("%s", err) res[k] = fmt.Sprintf("%s", err)
} else { } else {
res[k] = "ok" 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") fsys, _ := fs.Sub(assets, "assets/static")
r.StaticFS("/assets", http.FS(fsys)) r.StaticFS("/assets", http.FS(fsys))

View File

@ -1,7 +1,7 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "6ed3897" var githash = "b83b0e8"
var branch = "master" var branch = "master"
var buildstamp = "2024-11-17_17:48:44" var buildstamp = "2024-11-17_17:56:49"
var commits = "103" var commits = "104"
var version = "6ed3897-b103 - 2024-11-17_17:48:44" var version = "b83b0e8-b104 - 2024-11-17_17:56:49"