Files
cluster/internal/registry/handlers/version.go
2025-11-09 15:19:11 +08:00

14 lines
228 B
Go

package handlers
import (
"net/http"
"github.com/gin-gonic/gin"
)
// VersionCheck API 版本检查
func VersionCheck(c *gin.Context) {
c.Header("Docker-Distribution-API-Version", "registry/2.0")
c.Status(http.StatusOK)
}