доп фукнции апи

This commit is contained in:
2026-07-28 20:42:23 +04:00
parent c007a755fe
commit 6c18cad816
13 changed files with 894 additions and 6 deletions
+8
View File
@@ -1,16 +1,24 @@
<?php
use App\Http\Controllers\Api\GameBalanceController;
use App\Http\Controllers\Api\LauncherAccountController;
use App\Http\Controllers\Api\LauncherAuthController;
use App\Http\Controllers\Api\LauncherController;
use App\Http\Controllers\Api\LauncherNewsController;
use App\Http\Controllers\Api\LauncherRealmController;
use App\Http\Controllers\Api\LauncherRegistrationController;
use App\Http\Controllers\Api\RobokassaController;
use Illuminate\Support\Facades\Route;
Route::post('launcher/login', [LauncherAuthController::class, 'login'])
->middleware('throttle:10,1');
Route::post('launcher/register', [LauncherRegistrationController::class, 'store'])
->middleware('throttle:8,1');
Route::get('launcher/realms', [LauncherRealmController::class, 'index'])
->middleware('throttle:60,1');
Route::middleware('auth:api')->prefix('launcher')->group(function () {
Route::get('account', [LauncherAccountController::class, 'show']);
Route::get('manifest', [LauncherController::class, 'manifest']);
Route::get('download/{path}', [LauncherController::class, 'download'])
->where('path', '.*');