Added Shows, ActionFoto's and Attraction Status
This commit is contained in:
parent
b105bd7db7
commit
ad320963fc
30 changed files with 1190 additions and 503 deletions
|
@ -12,6 +12,8 @@
|
|||
*/
|
||||
|
||||
//AUTH
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
Auth::routes([
|
||||
'verify' => true,
|
||||
'register' => true
|
||||
|
@ -35,6 +37,19 @@ Route::namespace('Panel')->prefix('panel')->group(function () {
|
|||
Route::get('/home', 'HomeController@index')->name('home');
|
||||
Route::get('/', 'HomeController@index');
|
||||
|
||||
//Status and Ridecount
|
||||
Route::get('/status', 'HomeController@status')->name('status');
|
||||
Route::get('/ridecount/{attraction_id}', 'RidecountController@index')->name('ridecount');
|
||||
|
||||
//Shows
|
||||
Route::get('/shows', 'ShowController@index')->name('shows');
|
||||
Route::get('/order/{show_id}', 'ShowController@order')->name('order');
|
||||
Route::post('/order/make', 'ShowController@makeOrder')->name('makeOrder');
|
||||
|
||||
|
||||
if(DB::getSchemaBuilder()->hasTable('actionphotos'))
|
||||
Route::get('/photo', 'HomeController@photo')->name('photo');
|
||||
|
||||
//Logout Route
|
||||
Route::get('/logout', '\App\Http\Controllers\Auth\LoginController@logout');
|
||||
|
||||
|
@ -45,15 +60,18 @@ Route::prefix('2fa')->group(function () {
|
|||
Route::post('/toggle', 'ToggleTwoFactorController@toggle')->name('2fa.toggle');
|
||||
});
|
||||
|
||||
//User Profile/Security
|
||||
Route::get('/security/{page?}', 'SecurityController@index')->where('page', '^[1-9]\d*$')->name('security');
|
||||
Route::get('/profile', 'AccountController@index')->name('profile');
|
||||
Route::get('/session/{id}', 'SecurityController@session')->name('session.delete');
|
||||
//Profile
|
||||
Route::namespace('Profile')->prefix('profile')->group(function() {
|
||||
//User Profile/Security
|
||||
Route::get('/home', 'HomeController@index')->name('profile.home');
|
||||
Route::get('/security/{page?}', 'SecurityController@index')->where('page', '^[1-9]\d*$')->name('security');
|
||||
Route::get('/session/{id}', 'SecurityController@session')->name('session.delete');
|
||||
|
||||
//Change
|
||||
Route::prefix('change')->group(function () {
|
||||
Route::get('/', 'ChangeController@index')->name('change');
|
||||
Route::post('/password', 'ChangeController@changePassword')->name('change.password');
|
||||
Route::post('/email', 'ChangeController@changeEmail')->name('change.email');
|
||||
Route::get('/email/{id}/{token}/{email}', 'ChangeController@verifyEmail');
|
||||
//Change
|
||||
Route::prefix('change')->group(function () {
|
||||
Route::get('/', 'ChangeController@index')->name('change');
|
||||
Route::post('/password', 'ChangeController@changePassword')->name('change.password');
|
||||
Route::post('/email', 'ChangeController@changeEmail')->name('change.email');
|
||||
Route::get('/email/{id}/{token}/{email}', 'ChangeController@verifyEmail');
|
||||
});
|
||||
});
|
||||
|
|
Reference in a new issue