go-pingbot/website/routes/api/getAll.go
2021-11-10 13:38:54 +00:00

17 lines
210 B
Go

package api
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/medzikuser/go-pingbot/ping"
)
func GetAll(c *gin.Context) {
ping.Cache()
c.JSON(http.StatusOK, json{
"db": ping.CacheURL,
})
}