fix: zabbix 请求 localhost 出现 404
This commit is contained in:
11
router/handler/hello.go
Normal file
11
router/handler/hello.go
Normal file
@ -0,0 +1,11 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Hello(c *gin.Context) {
|
||||
c.JSON(200, gin.H{
|
||||
"message": "Hello, World!",
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user