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

18 lines
247 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-05 11:20:19 +00:00
"gitlab.com/gaming0skar123/go/pingbot/backend"
2021-07-11 21:19:37 +00:00
)
func GetAll(c *gin.Context) {
2021-09-05 11:20:19 +00:00
backend.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-05 11:20:19 +00:00
"db": backend.CacheURL,
2021-07-11 21:19:37 +00:00
})
}