From e41ad3e5041414aa05d30d2bbff9a76f6e1c7a3f Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Tue, 9 Feb 2021 10:41:21 +0100 Subject: [PATCH] moving globalsettings below ping endpoint --- src/webserver.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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() }