osb/routes/web.php
2018-06-06 08:14:41 +10:00

37 lines
1.4 KiB
PHP

<?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('/','WelcomeController@index');
// Generic Image Renderer - Render images that we dont have with a generic image
Route::get('image/generic/{width}/{height}/{color}/{name?}','MediaController@image')->name('image');
Route::get('admin/switch/start/{id}','\Leenooks\Controllers\AdminController@user_switch_start')->name('switch.user.stop');
Route::get('admin/switch/stop','\Leenooks\Controllers\AdminController@user_switch_stop')->name('switch.user.start');
Route::group(['middleware'=>['theme:adminlte-be']], function() {
Auth::routes();
Route::get('/logout','Auth\LoginController@logout');
Route::get('/r/supplier/index', 'SuppliersController@index');
Route::get('/r/supplier/create', 'SuppliersController@create');
Route::post('/r/supplier/store', 'SuppliersController@store');
Route::get('/home', 'UserHomeController@home');
});
Route::group(['middleware'=>['theme:metronic-fe']], function() {
Route::get('/', 'WelcomeController@index');
});
Route::demoAccess('/uc-access');
Route::redirect('/under-construction','http://www.graytech.net.au');