mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 23:57:07 +00:00
17 lines
210 B
Go
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,
|
|
})
|
|
}
|