mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 23:57:07 +00:00
18 lines
291 B
Go
18 lines
291 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
"gitlab.com/gaming0skar123/go/pingbot/backend"
|
|
)
|
|
|
|
func Status(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{
|
|
"success": true,
|
|
"ping": gin.H{
|
|
"success": backend.AmountSuccess,
|
|
"err": backend.AmountErr,
|
|
},
|
|
})
|
|
}
|