fix import

This commit is contained in:
2025-08-07 10:59:46 +09:00
parent 9f95368531
commit 451d45ed06

3
app.go
View File

@@ -5,7 +5,7 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/go-yaml/yaml" "github.com/go-yaml/yaml"
"os" "os"
"github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
"database/sql" "database/sql"
) )
@@ -39,6 +39,7 @@ func main() {
if err != nil { if err != nil {
panic(err) panic(err)
} }
initdb()
r := gin.Default() r := gin.Default()
r.GET("/api/getStatus", func(c *gin.Context) { r.GET("/api/getStatus", func(c *gin.Context) {
// 全てのサイトのステータス情報をJSON形式で返す // 全てのサイトのステータス情報をJSON形式で返す