2022-03-05 16:29:58 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use App\Http\Controllers\AccountController;
|
|
|
|
use App\Http\Controllers\DNSController;
|
|
|
|
use App\Http\Controllers\DomainsController;
|
|
|
|
use App\Http\Controllers\IPsController;
|
|
|
|
use App\Http\Controllers\LabelsController;
|
|
|
|
use App\Http\Controllers\LocationsController;
|
|
|
|
use App\Http\Controllers\MiscController;
|
|
|
|
use App\Http\Controllers\OsController;
|
|
|
|
use App\Http\Controllers\ProvidersController;
|
|
|
|
use App\Http\Controllers\ResellerController;
|
2022-05-16 04:07:35 +02:00
|
|
|
use App\Http\Controllers\SeedBoxesController;
|
2022-03-05 16:29:58 +01:00
|
|
|
use App\Http\Controllers\ServerController;
|
|
|
|
use App\Http\Controllers\SettingsController;
|
|
|
|
use App\Http\Controllers\SharedController;
|
|
|
|
use App\Http\Controllers\YabsController;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/', 'App\Http\Controllers\HomeController@index')->name('/');
|
|
|
|
|
|
|
|
|
|
|
|
Route::get('dashboard', function () {
|
|
|
|
return redirect('/');
|
|
|
|
});
|
|
|
|
|
|
|
|
require __DIR__ . '/auth.php';
|
|
|
|
|
|
|
|
Route::resource('account', AccountController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('dns', DNSController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('domains', DomainsController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('IPs', IPsController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('labels', LabelsController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('locations', LocationsController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('misc', MiscController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('os', OsController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('providers', ProvidersController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('reseller', ResellerController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::get('servers/public', 'App\Http\Controllers\ServerController@showServersPublic')->name('servers/public');
|
|
|
|
|
|
|
|
Route::resource('servers', ServerController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
|
|
|
|
Route::resource('settings', SettingsController::class)->middleware(['auth']);
|
|
|
|
|
2022-05-16 04:07:35 +02:00
|
|
|
Route::resource('seedboxes', SeedBoxesController::class)->middleware(['auth']);
|
|
|
|
|
2022-03-05 16:29:58 +01:00
|
|
|
Route::resource('shared', SharedController::class)->middleware(['auth']);
|
|
|
|
|
|
|
|
Route::resource('yabs', YabsController::class)->middleware(['auth']);
|
|
|
|
|
2022-07-18 06:27:11 +02:00
|
|
|
Route::get('yabs-compare-choose', 'App\Http\Controllers\YabsController@chooseYabsCompare')->middleware(['auth'])->name('yabs.compare-choose');
|
|
|
|
|
|
|
|
Route::get('yabs-compare/{yabs1}/{yabs2}', 'App\Http\Controllers\YabsController@compareYabs')->middleware(['auth'])->name('yabs.compare');
|
|
|
|
|
2022-03-05 16:29:58 +01:00
|
|
|
Route::get('servers-compare-choose', 'App\Http\Controllers\ServerController@chooseCompare')->middleware(['auth'])->name('servers-compare-choose');
|
|
|
|
|
2022-07-18 06:44:16 +02:00
|
|
|
Route::get('servers-compare/{server1}/{server2}', 'App\Http\Controllers\ServerController@compareServers')->middleware(['auth'])->name('servers.compare');
|