Change /info endpoint to /connection

This commit is contained in:
Dan Sosedoff
2014-12-02 21:20:04 -06:00
parent 2c2b6393c0
commit 403701b258
4 changed files with 145 additions and 144 deletions

2
api.go
View File

@@ -151,7 +151,7 @@ func API_History(c *gin.Context) {
c.JSON(200, dbClient.history)
}
func API_Info(c *gin.Context) {
func API_ConnectionInfo(c *gin.Context) {
if dbClient == nil {
c.JSON(400, Error{"Not connected"})
return