Add static dir

This commit is contained in:
Dan Sosedoff 2014-10-09 19:05:51 -05:00
parent 4446218c7a
commit 5b1e6bf2fa
3 changed files with 4 additions and 0 deletions

View File

@ -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
View File

1
static/index.html Normal file
View File

@ -0,0 +1 @@
HELLO