osb/routes/web.php

37 lines
1.4 KiB
PHP
Raw Normal View History

2017-11-03 05:26:07 +00:00
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
2017-11-03 05:26:07 +00:00
|--------------------------------------------------------------------------
|
| 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!
2017-11-03 05:26:07 +00:00
|
*/
2018-05-20 12:53:14 +00:00
Route::get('/','WelcomeController@index');
2017-12-04 12:37:14 +00:00
// 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');
2018-05-20 12:53:14 +00:00
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');
2018-05-20 12:53:14 +00:00
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');
});
2018-05-20 12:53:14 +00:00
Route::group(['middleware'=>['theme:metronic-fe']], function() {
Route::get('/', 'WelcomeController@index');
});
Route::demoAccess('/uc-access');
2018-06-05 22:14:41 +00:00
Route::redirect('/under-construction','http://www.graytech.net.au');