mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-04-25 07:57:06 -05:00
Removed .idea folder
This commit is contained in:
parent
eeb29a6f46
commit
36b9371a5b
41
dist/app/Http/Controllers/Api/PatchController.php
vendored
Normal file
41
dist/app/Http/Controllers/Api/PatchController.php
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Api;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class PatchController extends Controller
|
||||
{
|
||||
public function getCurrentPatch()
|
||||
{
|
||||
$disk = Storage::disk('patches');
|
||||
$patchFiles = $disk->allFiles('paks');
|
||||
|
||||
if (count($patchFiles) <= 0)
|
||||
return response('No Patches Found', 404);
|
||||
|
||||
$filePath = $disk->path($patchFiles[0]);
|
||||
|
||||
return response()->download($filePath);
|
||||
}
|
||||
|
||||
public function getSignature()
|
||||
{
|
||||
$disk = Storage::disk('patches');
|
||||
if(!$disk->exists('TheExit.sig'))
|
||||
return response('No Patches Found', 404);
|
||||
|
||||
return response()->download($disk->path('TheExit.sig'));
|
||||
}
|
||||
|
||||
public function getBattleyePatch()
|
||||
{
|
||||
$disk = Storage::disk('patches');
|
||||
if(!$disk->exists('bottleEye/BEClient_x64.dll'))
|
||||
return response('No Patch Found', 404);
|
||||
|
||||
return response()->download($disk->path('bottleEye/BEClient_x64.dll'));
|
||||
}
|
||||
}
|
||||
13
dist/config/filesystems.php
vendored
13
dist/config/filesystems.php
vendored
|
|
@ -44,18 +44,11 @@
|
|||
'throw' => false,
|
||||
],
|
||||
|
||||
's3' => [
|
||||
'driver' => 's3',
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'region' => env('AWS_DEFAULT_REGION'),
|
||||
'bucket' => env('AWS_BUCKET'),
|
||||
'url' => env('AWS_URL'),
|
||||
'endpoint' => env('AWS_ENDPOINT'),
|
||||
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
|
||||
'patches' => [
|
||||
'driver' => 'local',
|
||||
'root' => resource_path('patches'),
|
||||
'throw' => false,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|
|
|
|||
BIN
dist/resources/patches/TheExit.sig
vendored
Normal file
BIN
dist/resources/patches/TheExit.sig
vendored
Normal file
Binary file not shown.
BIN
dist/resources/patches/bottleEye/BEClient_x64.dll
vendored
Normal file
BIN
dist/resources/patches/bottleEye/BEClient_x64.dll
vendored
Normal file
Binary file not shown.
BIN
dist/resources/patches/paks/TheExit_Rewrite_Prod_P.pak
vendored
Normal file
BIN
dist/resources/patches/paks/TheExit_Rewrite_Prod_P.pak
vendored
Normal file
Binary file not shown.
8
dist/routes/api.php
vendored
8
dist/routes/api.php
vendored
|
|
@ -11,6 +11,14 @@
|
|||
|
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\Api\PatchController;
|
||||
|
||||
Route::prefix('files')->group(function () {
|
||||
Route::get('patch/current', [PatchController::class, 'getCurrentPatch']);
|
||||
Route::get('patch/sig', [PatchController::class, 'getSignature']);
|
||||
Route::get('patch/battleye', [PatchController::class, 'getBattleyePatch']);
|
||||
});
|
||||
|
||||
Route::fallback(function () {
|
||||
return response('route not found', 404);
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user