fix: zabbix 请求 localhost 出现 404
This commit is contained in:
@ -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!",
|
||||
})
|
||||
}
|
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func SetupRoutes(r *gin.Engine) {
|
||||
r.GET("/ping", handler.Ping)
|
||||
r.GET("/", handler.Hello)
|
||||
|
||||
userGroup := r.Group("/onvif")
|
||||
{
|
||||
|
Reference in New Issue
Block a user