Cloudreve/routers/controllers/ping.go

14 lines
211 B
Go

package controllers
import (
"cloudreve/pkg/serializer"
"github.com/gin-gonic/gin"
)
// Ping 状态检查页面
func Ping(c *gin.Context) {
c.JSON(200, serializer.Response{
Code: 0,
Msg: "Pong",
})
}