2025-03-30 19:37:01 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\ProfileController;
|
2025-03-30 22:52:35 +03:00
|
|
|
use App\Http\Controllers\ProxyController;
|
|
|
|
|
use App\Http\Controllers\ProxyListController;
|
|
|
|
|
use App\Http\Controllers\SubscriptionController;
|
2025-03-30 19:37:01 +03:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
|
|
|
|
return view('welcome');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::get('/dashboard', function () {
|
|
|
|
|
return view('dashboard');
|
|
|
|
|
})->middleware(['auth', 'verified'])->name('dashboard');
|
|
|
|
|
|
|
|
|
|
Route::middleware('auth')->group(function () {
|
|
|
|
|
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
|
|
|
|
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
|
|
|
|
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::get('/proxy-test', function () {
|
|
|
|
|
return response()->json([
|
|
|
|
|
'status' => 'success',
|
|
|
|
|
'timestamp' => time(),
|
|
|
|
|
'unique_id' => uniqid('proxy_test_', true)
|
|
|
|
|
]);
|
|
|
|
|
});
|
|
|
|
|
|
2025-03-30 22:52:35 +03:00
|
|
|
// Proxy routes
|
|
|
|
|
Route::get('/', [ProxyController::class, 'home'])->name('proxy.home');
|
|
|
|
|
Route::match(['get', 'post'], '/browse', [ProxyController::class, 'browse'])->name('proxy.browse');
|
|
|
|
|
|
|
|
|
|
// Free Proxies routes
|
|
|
|
|
Route::get('/proxies', [ProxyListController::class, 'index'])->name('proxies.index');
|
|
|
|
|
|
|
|
|
|
// Subscription routes
|
|
|
|
|
Route::get('/subscriptions', [SubscriptionController::class, 'index'])->name('subscriptions.index');
|
|
|
|
|
|
2025-03-30 19:37:01 +03:00
|
|
|
require __DIR__.'/auth.php';
|