mirror of
https://github.com/tobiasehlert/teslamateapi.git
synced 2026-02-27 09:54:18 +08:00
moving globalsettings below ping endpoint
This commit is contained in:
+7
-7
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user