JSON ping lol
This commit is contained in:
parent
00574ffb35
commit
86c86106da
4
main.go
4
main.go
@ -34,7 +34,9 @@ func init() {
|
|||||||
func main() {
|
func main() {
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
router.GET("/ping", func(c *gin.Context) {
|
router.GET("/ping", func(c *gin.Context) {
|
||||||
c.String(200, "pong")
|
c.JSON(200, gin.H{
|
||||||
|
"message": "pong",
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
/// Admin routes
|
/// Admin routes
|
||||||
|
Reference in New Issue
Block a user