Add static dir
This commit is contained in:
3
main.go
3
main.go
@@ -179,12 +179,15 @@ func main() {
|
||||
defer dbClient.db.Close()
|
||||
|
||||
router := gin.Default()
|
||||
|
||||
router.GET("/databases", API_GetDatabases)
|
||||
router.GET("/tables", API_GetTables)
|
||||
router.GET("/tables/:name", API_GetTable)
|
||||
router.GET("/select", API_RunQuery)
|
||||
router.POST("/select", API_RunQuery)
|
||||
|
||||
router.Static("/app", "./static")
|
||||
|
||||
fmt.Println("Starting server at 0.0.0.0:8080")
|
||||
router.Run(":8080")
|
||||
}
|
||||
|
||||
0
static/.gitkeep
Normal file
0
static/.gitkeep
Normal file
1
static/index.html
Normal file
1
static/index.html
Normal file
@@ -0,0 +1 @@
|
||||
HELLO
|
||||
Reference in New Issue
Block a user