diff --git a/src/webserver.go b/src/webserver.go index 29d8460..8f97383 100644 --- a/src/webserver.go +++ b/src/webserver.go @@ -56,13 +56,6 @@ func main() { } }) - // /ping endpoint - r.GET("/ping", func(c *gin.Context) { - c.JSON(http.StatusOK, gin.H{ - "message": "pong", - }) - }) - // /globalsettings endpoint r.GET("/globalsettings", func(c *gin.Context) { // TeslaMateAPIGlobalSettings to get data @@ -76,6 +69,13 @@ func main() { } }) + // /ping endpoint + r.GET("/ping", func(c *gin.Context) { + c.JSON(http.StatusOK, gin.H{ + "message": "pong", + }) + }) + // run this! :) r.Run() }