remove test
This commit is contained in:
parent
b83b0e8c4f
commit
3bd57a4e98
29
admin.go
29
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))
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user