clrghouz/routes/web.php

62 lines
2.3 KiB
PHP
Raw Normal View History

2018-11-15 10:45:49 +00:00
<?php
2021-05-03 12:53:40 +00:00
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\{HomeController,DomainController,NodeController,SystemController,UserController,ZoneController};
2021-05-03 12:53:40 +00:00
use App\Http\Controllers\Auth\LoginController;
2018-11-15 10:45:49 +00:00
/*
|--------------------------------------------------------------------------
| 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!
|
*/
2021-05-03 12:53:40 +00:00
Auth::routes([
'login' => true,
'logout' => true,
'register' => true,
'reset' => true, // for resetting passwords
'confirm' => true, // for additional password confirmations
'verify' => true, // for email verification
]);
Route::get('logout',[LoginController::class,'logout']);
2021-06-12 15:14:34 +00:00
Route::redirect('/','about');
Route::view('about','about');
2021-05-03 12:53:40 +00:00
Route::middleware(['verified','activeuser'])->group(function () {
2021-06-13 13:00:26 +00:00
Route::get('ftn/domain',[DomainController::class,'home']);
Route::match(['get','post'],'ftn/domain/addedit/{o?}',[DomainController::class,'add_edit'])
->where('o','[0-9]+');
2021-05-13 12:40:21 +00:00
2021-06-13 13:00:26 +00:00
Route::get('ftn/node',[NodeController::class,'home']);
Route::match(['get','post'],'ftn/node/addedit/{o?}',[NodeController::class,'add_edit'])
->where('o','[0-9]+');
2021-05-13 12:40:21 +00:00
Route::get('ftn/system',[SystemController::class,'home']);
Route::match(['get','post'],'ftn/system/addedit/{o?}',[SystemController::class,'add_edit'])
->where('o','[0-9]+');
Route::post('ftn/system/addaddress/{o?}',[SystemController::class,'add_address'])
->where('o','[0-9]+');
2021-06-13 13:00:26 +00:00
Route::get('ftn/zone',[ZoneController::class,'home']);
Route::match(['get','post'],'ftn/zone/addedit/{o?}',[ZoneController::class,'add_edit'])
->where('o','[0-9]+');
2021-06-14 11:33:18 +00:00
});
2021-06-15 12:19:14 +00:00
Route::get('network/{o}',[HomeController::class,'network']);
Route::get('permissions',[HomeController::class,'permissions']);
2021-06-15 12:19:14 +00:00
Route::middleware(['auth','can:admin'])->group(function () {
Route::get('setup',[HomeController::class,'setup']);
Route::get('user/list',[UserController::class,'home']);
Route::match(['get','post'],'user/addedit/{o?}',[UserController::class,'add_edit'])
->where('o','[0-9]+');
2021-06-15 12:19:14 +00:00
});