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-31 23:25:59 +03:00
|
|
|
use App\Http\Controllers\PortScannerController;
|
2025-03-31 23:49:32 +03:00
|
|
|
use App\Http\Controllers\PacFileController;
|
|
|
|
|
use App\Http\Controllers\ProxyCheckerController;
|
|
|
|
|
use App\Http\Controllers\IPGeolocationController;
|
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
|
|
|
// Free Proxies routes
|
|
|
|
|
Route::get('/proxies', [ProxyListController::class, 'index'])->name('proxies.index');
|
|
|
|
|
|
|
|
|
|
// Subscription routes
|
2025-03-31 23:49:32 +03:00
|
|
|
Route::middleware(['auth'])->group(function () {
|
|
|
|
|
Route::get('/subscriptions', [SubscriptionController::class, 'index'])->name('subscriptions.index');
|
|
|
|
|
Route::post('/subscriptions/{subscription}/subscribe', [SubscriptionController::class, 'subscribe'])->name('subscriptions.subscribe');
|
|
|
|
|
Route::delete('/subscriptions/{userSubscription}/cancel', [SubscriptionController::class, 'cancel'])->name('subscriptions.cancel');
|
|
|
|
|
});
|
2025-03-30 22:52:35 +03:00
|
|
|
|
2025-03-31 23:25:59 +03:00
|
|
|
Route::get('/port-scanner', [PortScannerController::class, 'index'])->name('port-scanner.index');
|
|
|
|
|
Route::post('/port-scanner/scan', [PortScannerController::class, 'scan'])->name('port-scanner.scan');
|
|
|
|
|
|
2025-03-31 23:49:32 +03:00
|
|
|
// PAC File routes
|
|
|
|
|
Route::get('/pac-file', function () {
|
|
|
|
|
return view('pac-file');
|
|
|
|
|
})->name('pac.file');
|
|
|
|
|
|
|
|
|
|
Route::get('/pac-file/generate', [PacFileController::class, 'generate'])->name('pac.generate');
|
|
|
|
|
|
|
|
|
|
// Proxy Checker routes
|
|
|
|
|
Route::get('/proxy-checker', [ProxyCheckerController::class, 'index'])->name('proxy-checker.index');
|
|
|
|
|
Route::post('/proxy-checker/check', [ProxyCheckerController::class, 'check'])->name('proxy-checker.check');
|
|
|
|
|
|
|
|
|
|
// IP Geolocation routes
|
|
|
|
|
Route::get('/ip-lookup', [IPGeolocationController::class, 'index'])->name('ip-geolocation.index');
|
|
|
|
|
Route::post('/ip-lookup', [IPGeolocationController::class, 'lookup'])->name('ip-geolocation.lookup');
|
|
|
|
|
|
2025-03-30 19:37:01 +03:00
|
|
|
require __DIR__.'/auth.php';
|