This commit is contained in:
Dan Sosedoff
2014-10-13 13:55:19 -05:00
parent d579819946
commit 9bd0508219
7 changed files with 450 additions and 186 deletions

6
api.go
View File

@@ -11,6 +11,10 @@ type Error struct {
Message string `json:"error"`
}
func API_Home(c *gin.Context) {
c.File("./static/index.html")
}
func API_RunQuery(c *gin.Context) {
query := strings.TrimSpace(c.Request.FormValue("query"))
@@ -52,7 +56,7 @@ func API_GetTable(c *gin.Context) {
return
}
c.JSON(200, res.Format())
c.JSON(200, res)
}
func API_History(c *gin.Context) {