fix: zabbix 请求 localhost 出现 404

This commit is contained in:
2024-08-23 17:04:39 +08:00
parent 0f4c565250
commit 228ec26904
3 changed files with 6 additions and 6 deletions

View File

@ -4,8 +4,8 @@ import (
"github.com/gin-gonic/gin"
)
func Ping(c *gin.Context) {
func Hello(c *gin.Context) {
c.JSON(200, gin.H{
"message": "pong",
"message": "Hello, World!",
})
}

View File

@ -7,7 +7,7 @@ import (
)
func SetupRoutes(r *gin.Engine) {
r.GET("/ping", handler.Ping)
r.GET("/", handler.Hello)
userGroup := r.Group("/onvif")
{