2016-10-13 04:56:01 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This file is where you may define all of the routes that are handled
|
|
|
|
| by your application. Just tell Laravel the URIs it should respond
|
|
|
|
| to using a Closure or controller method. Build something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2016-10-20 14:40:52 +00:00
|
|
|
// The default home page
|
|
|
|
Route::get('/', function () {
|
|
|
|
return view('welcome');
|
|
|
|
});
|
|
|
|
|
2017-08-05 23:53:57 +00:00
|
|
|
Route::get('logout','Auth\LoginController@logout');
|
|
|
|
|
2016-10-20 14:40:52 +00:00
|
|
|
// Generic Image Renderer - Render images that we dont have with a generic image
|
|
|
|
Route::get('image/generic/{width}/{height}/{color}','MediaController@image')->name('image');
|
|
|
|
|
2017-08-05 23:53:57 +00:00
|
|
|
// Backend Routes
|
|
|
|
Route::group(['middleware'=>['auth','admin','setTheme:adminlte-be'],'prefix'=>'a'], function() {
|
2016-10-20 14:40:52 +00:00
|
|
|
|
2017-08-05 23:53:57 +00:00
|
|
|
Route::get('/home', function()
|
2016-10-20 14:40:52 +00:00
|
|
|
{
|
2017-08-05 23:53:57 +00:00
|
|
|
return View::make('home');
|
|
|
|
})->name('home');
|
2016-10-20 14:40:52 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::group(['prefix'=>'public','namespace'=>'public','middleware'=>['setTheme:metronic-be']], function() {
|
|
|
|
|
|
|
|
Route::get('/', function()
|
|
|
|
{
|
|
|
|
return View::make('home');
|
|
|
|
})->name('public');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::group(['prefix'=>'demo','namespace'=>'sbadmin','middleware'=>['setTheme:sbadmin']], function() {
|
2017-08-05 23:53:57 +00:00
|
|
|
Route::get('/a', function () {})->name('demo');
|
|
|
|
Route::get('/b', function () {})->name('demo.login');
|
|
|
|
Route::get('/c', function () {})->name('demo.charts');
|
|
|
|
Route::get('/d', function () {})->name('demo.tables');
|
|
|
|
Route::get('/e', function () {})->name('demo.forms');
|
|
|
|
Route::get('/f', function () {})->name('demo.panels');
|
|
|
|
Route::get('/g', function () {})->name('demo.buttons');
|
|
|
|
Route::get('/h', function () {})->name('demo.typography');
|
|
|
|
Route::get('/i', function () {})->name('demo.icons');
|
|
|
|
Route::get('/j', function () {})->name('demo.grid');
|
|
|
|
Route::get('/k', function () {})->name('demo.blank');
|
|
|
|
Route::get('/l', function () {})->name('demo.documentation');
|
2016-10-13 04:56:01 +00:00
|
|
|
});
|