go-pingbot/website/routes/api/getAll.go

18 lines
238 B
Go
Raw Normal View History

2021-07-11 21:19:37 +00:00
package api
import (
"net/http"
"github.com/gin-gonic/gin"
2021-09-08 20:18:35 +00:00
"gitlab.com/gaming0skar123/go/pingbot/ping"
2021-07-11 21:19:37 +00:00
)
func GetAll(c *gin.Context) {
2021-09-08 20:18:35 +00:00
ping.Cache()
2021-07-11 21:19:37 +00:00
c.JSON(http.StatusOK, json{
2021-07-11 21:19:37 +00:00
"success": true,
2021-09-08 20:18:35 +00:00
"db": ping.CacheURL,
2021-07-11 21:19:37 +00:00
})
}