wip: oci image management
This commit is contained in:
13
internal/registry/handlers/version.go
Normal file
13
internal/registry/handlers/version.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user