<?php

namespace App\Http\Controllers\Api\V1\Admin;

use App\Support\ApiResponse;
use Illuminate\Http\JsonResponse;
use App\Http\Controllers\Controller;

/**
 * Bearer Token 必填（{@see EnsureAdminApi} + Sanctum）；确认 `/api/v1/admin` 鉴权链路可达。
 * 路由：GET /api/v1/admin/ping
 */
final class PingController extends Controller
{
    public function __invoke(): JsonResponse
    {
        return ApiResponse::success(['scope' => 'admin']);
    }
}
