⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.36
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.3.16
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
call.techlup.co.ke
/
pbx
/
routes
/
View File Name :
web.php
<?php use App\Http\Controllers\ProfileController; use Illuminate\Foundation\Application; use Illuminate\Support\Facades\Route; use Inertia\Inertia; /* |-------------------------------------------------------------------------- | 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('/', function () { return redirect()->route('admin.dashboard'); })->name('landing'); 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('/test', function (){ return view('test'); }); // admin routes Route::namespace('\App\Http\Controllers')->middleware(['auth', 'role:super-admin'])->prefix('admin')->as('admin.')->group(function($router){ // user management routes Route::resource('users', 'UsersController')->names([ 'index'=>'users.index', 'store'=>'users.store', 'update'=>'users.update', 'destroy'=>'users.destroy' ]); // number management Route::resource('numbers', 'PhoneNumberController')->names([ 'index'=>'numbers.index', 'store'=>'numbers.store', 'update'=>'numbers.update', 'destroy'=>'numbers.destroy' ]); Route::get('dump/queue', 'AgentCallController@dumpQueue'); }); // admin routes Route::namespace('\App\Http\Controllers')->middleware(['auth', 'verified'])->prefix('admin')->as('admin.')->group(function($router){ // dashboard Route::get('/dashboard', 'DashboardController@index')->name('dashboard'); // clients management routes Route::get('clients', 'PageController@clients')->name('page.clients'); // call management routes Route::get('calls/{status}', 'AgentCallController@index')->name('page.calls'); Route::post('queue/', 'AgentCallController@queuedCalls')->name('page.queue'); Route::get('calls/next/pick', 'AgentCallController@pickNextCall')->name('page.calls.pick-next'); Route::post('phone/change/{name}', 'AgentCallController@changePhone')->name('page.phone.change'); Route::post('call/active', 'AgentCallController@getActiveCallDetails')->name('page.call.active'); Route::post('call/transfer/{to}', 'AgentCallController@transferActiveCall')->name('page.call.transfer'); }); require __DIR__.'/auth.php';