first commit, after modifying client section
This commit is contained in:
18
routes/api.php
Executable file
18
routes/api.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register API routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| is assigned the "api" middleware group. Enjoy building your API!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::middleware('auth:api')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
16
routes/channels.php
Executable file
16
routes/channels.php
Executable file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Broadcast Channels
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may register all of the event broadcasting channels that your
|
||||
| application supports. The given channel authorization callbacks are
|
||||
| used to check if an authenticated user can listen to the channel.
|
||||
|
|
||||
*/
|
||||
|
||||
Broadcast::channel('App.User.{id}', function ($user, $id) {
|
||||
return (int) $user->id === (int) $id;
|
||||
});
|
||||
18
routes/console.php
Executable file
18
routes/console.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Console Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This file is where you may define all of your Closure based console
|
||||
| commands. Each Closure is bound to a command instance allowing a
|
||||
| simple approach to interacting with each command's IO methods.
|
||||
|
|
||||
*/
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->describe('Display an inspiring quote');
|
||||
88
routes/web.php
Executable file
88
routes/web.php
Executable file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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 view('welcome');
|
||||
});
|
||||
|
||||
Auth::routes();
|
||||
|
||||
Route::get('/home', 'HomeController@index')->name('home');
|
||||
*/
|
||||
|
||||
Route::get('login', 'LoginController@getLoginPage');
|
||||
|
||||
Route::post('login', 'LoginController@handleLogin');
|
||||
Route::get('logout', 'LoginController@handle_logout');
|
||||
|
||||
|
||||
Route::post('account/register', 'LoginController@registerAccount');
|
||||
|
||||
Route::get('ussd/dashboard', 'UssdDashboardController@index');
|
||||
|
||||
|
||||
Route::group(['middleware' => ['checklogin']], function(){
|
||||
Route::get('/', 'MeetingReportsController@showDetails');
|
||||
|
||||
Route::get('dashboard', 'MeetingReportsController@showDetails');
|
||||
Route::get('reportdetails/{id}', 'MeetingReportsController@showDetails');
|
||||
|
||||
Route::resource('network_ops', 'NetworkOperatorsController');
|
||||
Route::resource('services', 'ServicesController');
|
||||
|
||||
Route::post('clients/notes_store', 'ClientsController@notesStore');
|
||||
Route::get('clients/create-notes', 'ClientsController@createNotes');
|
||||
|
||||
Route::get('clients/all', 'ClientsController@getClientJson');
|
||||
Route::post('clients/raw', 'ClientsController@getClientJsonRawJs');
|
||||
Route::get('clients/indexrawjs', 'ClientsController@indexRawJs');
|
||||
Route::get('clients/indextabulator', 'ClientsController@indexTabulator');
|
||||
Route::get('clients/servicesedit/{id}', 'ClientsController@editservice')->name('clients.editservice');
|
||||
Route::get('clients/services/{id}', 'ClientsController@showservices')->name('clients.services');
|
||||
Route::resource('clients', 'ClientsController');
|
||||
|
||||
Route::get('reports/search', 'MeetingReportsController@search');
|
||||
Route::post('reports/samcomment', 'MeetingReportsController@store_sam_comment');
|
||||
Route::resource('reports', 'MeetingReportsController');
|
||||
|
||||
Route::resource('accountmanagers', 'SystemUsersController');
|
||||
|
||||
Route::get('infrastructure/createdirect/{id}', 'ClickInfrastructureController@create_direct');
|
||||
Route::get('infrastructure/editdirect/{id}', 'ClickInfrastructureController@edit_direct');
|
||||
|
||||
Route::post('infrastructure/storedirect', 'ClickInfrastructureController@store_direct');
|
||||
Route::post('infrastructure/updatedirect', 'ClickInfrastructureController@update_direct');
|
||||
|
||||
Route::get('infrastructure/revealpassword/{id}', 'ClickInfrastructureController@reveal_password');
|
||||
Route::post('infrastructure/updateserver', 'ClickInfrastructureController@updateserver');
|
||||
Route::get('infrastructure/server-list', 'ClickInfrastructureController@server_list');
|
||||
Route::get('infrastructure/editserver-list/{id}', 'ClickInfrastructureController@edit_server');
|
||||
|
||||
|
||||
|
||||
Route::get('infrastructure/domains', 'ClickInfrastructureController@domains');
|
||||
Route::get('infrastructure/servers', 'ClickInfrastructureController@servers');
|
||||
|
||||
Route::get('infrastructure/create', 'ClickInfrastructureController@create');
|
||||
|
||||
Route::resource('ussdclients', 'UssdClientsPaymentsController');
|
||||
|
||||
Route::resource('clickapps', 'ClickAppsController');
|
||||
|
||||
Route::resource('marketreport', 'MarketerReportController');
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user