// SPDX-License-Identifier: Apache-2.0
//! `GET /v2/` version-check endpoint.
//!
//! Spec: OCI Distribution Spec v1.1 §3.2 "Determining support".
//!
//! Clients call this endpoint first to confirm the registry implements
//! the v2 API. Unauthenticated installs return `200 OK` with an empty
//! JSON object; authenticated installs may return `401` with a
//! `WWW-Authenticate` challenge, but that layer is owned by
//! a separate auth crate and is not implemented here in Phase 1.
use Json;
use ;
use ;
use json;
/// Handle `GET /v2/`.
///
/// Spec: OCI Distribution Spec v1.1 §3.2.
pub async