mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 15:06:49 +00:00
20 lines
348 B
Go
20 lines
348 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{
|
|
"all": backend.AmountSuccess + backend.AmountErr,
|
|
"success": backend.AmountSuccess,
|
|
"err": backend.AmountErr,
|
|
},
|
|
})
|
|
}
|