mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 00:51:25 -05:00
79 lines
3.2 KiB
PHP
79 lines
3.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Dashboard;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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!
|
|
|
|
|
*/
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Authentication Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::auth([ 'register' => Dashboard::canRegister() ]);
|
|
Route::get('/logout', 'App\Http\Controllers\Auth\LoginController@logout');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Dashboard Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::group([ 'prefix' => 'dashboard' ], function() {
|
|
// Dashboard CMS
|
|
Route::get('/', 'App\Http\Controllers\DashboardController@getIndex');
|
|
Route::get('/view/{model}', 'App\Http\Controllers\DashboardController@getView');
|
|
Route::get('/edit/{model}', 'App\Http\Controllers\DashboardController@getEditList');
|
|
Route::get('/edit/{model}/{id}', 'App\Http\Controllers\DashboardController@getEditItem');
|
|
Route::get('/export/{model}', 'App\Http\Controllers\DashboardController@getExport');
|
|
Route::post('/reorder', 'App\Http\Controllers\DashboardController@postReorder');
|
|
Route::post('/update', 'App\Http\Controllers\DashboardController@postUpdate');
|
|
Route::post('/image-upload', 'App\Http\Controllers\DashboardController@postImageUpload');
|
|
Route::post('/file-upload', 'App\Http\Controllers\DashboardController@postFileUpload');
|
|
Route::delete('/delete', 'App\Http\Controllers\DashboardController@deleteDelete');
|
|
Route::delete('/image-delete', 'App\Http\Controllers\DashboardController@deleteImageDelete');
|
|
Route::delete('/file-delete', 'App\Http\Controllers\DashboardController@deleteFileDelete');
|
|
|
|
// Dashboard Settings
|
|
Route::get('/settings', 'App\Http\Controllers\DashboardController@getSettings');
|
|
Route::post('/user/password-update', 'App\Http\Controllers\DashboardController@postUserPasswordUpdate');
|
|
Route::post('/user/profile-update', 'App\Http\Controllers\DashboardController@postUserProfileUpdate');
|
|
Route::post('/user/profile-image-upload', 'App\Http\Controllers\DashboardController@postUserProfileImageUpload');
|
|
Route::delete('/user/profile-image-delete', 'App\Http\Controllers\DashboardController@deleteUserProfileImageDelete');
|
|
|
|
// Credits Page
|
|
Route::get('/credits', 'App\Http\Controllers\DashboardController@getCredits');
|
|
});
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Public Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::get('/language/{lang}', function($lang) {
|
|
Language::setSessionLanguage($lang);
|
|
return redirect()->back();
|
|
});
|
|
|
|
Route::get('/', function() {
|
|
return view('pages.home');
|
|
});
|
|
|
|
Route::get('/blog', function() {
|
|
return view('pages.blog');
|
|
});
|
|
|
|
Route::get('/contact', function() {
|
|
return view('pages.contact');
|
|
});
|