fix import
This commit is contained in:
3
app.go
3
app.go
@@ -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形式で返す
|
||||||
|
Reference in New Issue
Block a user