Files
lotteryLaravel/app/Http/Controllers/Api/V1/Player/PingController.php

20 lines
442 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Http\Controllers\Api\V1\Player;
use App\Support\ApiResponse;
use Illuminate\Http\JsonResponse;
use App\Http\Controllers\Controller;
/**
* 无需登录:仅供网关/前端确认「玩家 API 前缀」可达。
* 路由GET /api/v1/player/ping
*/
final class PingController extends Controller
{
public function __invoke(): JsonResponse
{
return ApiResponse::success(['scope' => 'player']);
}
}