feat: 为玩家和管理员模块新增 API 路由与中间件别名
This commit is contained in:
16
app/Http/Controllers/Api/V1/Player/PingController.php
Normal file
16
app/Http/Controllers/Api/V1/Player/PingController.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Api\V1\Player;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\ApiResponse;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
|
||||
/** 探路由用,上线前可删除或改为需登录 */
|
||||
class PingController extends Controller
|
||||
{
|
||||
public function __invoke(): JsonResponse
|
||||
{
|
||||
return ApiResponse::success(['scope' => 'player']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user