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

17 lines
210 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-11-10 13:38:54 +00:00
"github.com/medzikuser/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-09-15 19:17:40 +00:00
"db": ping.CacheURL,
2021-07-11 21:19:37 +00:00
})
}