add /@littlelink_name as default page link, and force scheme to https ability

This commit is contained in:
aprillio 2021-07-06 15:56:05 +07:00
parent c95db56a40
commit 25b80b0029
1 changed files with 3 additions and 2 deletions

View File

@ -20,14 +20,15 @@ use App\Http\Controllers\UserController;
//Public route //Public route
Route::get('/going/{id?}/{link?}', [UserController::class, 'clickNumber'])->where('link', '.*')->name('clickNumber'); Route::get('/going/{id?}/{link?}', [UserController::class, 'clickNumber'])->where('link', '.*')->name('clickNumber');
Route::get('/+{littlelink}', [UserController::class, 'littlelink'])->name('littlelink'); Route::get('/+{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');
Route::get('/@{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');
Route::get('/pages/{name}', [AdminController::class, 'pages'])->name('pages'); Route::get('/pages/{name}', [AdminController::class, 'pages'])->name('pages');
Route::get('/', [App\Http\Controllers\HomeController::class, 'home'])->name('home'); Route::get('/', [App\Http\Controllers\HomeController::class, 'home'])->name('home');
//User route //User route
Route::group([ Route::group([
'middleware' => 'auth', 'middleware' => 'auth',
], function () { ], function () {
URL::forceScheme('https'); # comment to disable https
Route::get('/studio/index', [UserController::class, 'index'])->name('studioIndex'); Route::get('/studio/index', [UserController::class, 'index'])->name('studioIndex');
Route::get('/studio/add-link', [UserController::class, 'showButtons'])->name('showButtons'); Route::get('/studio/add-link', [UserController::class, 'showButtons'])->name('showButtons');
Route::post('/studio/add-link', [UserController::class, 'addLink'])->name('addLink'); Route::post('/studio/add-link', [UserController::class, 'addLink'])->name('addLink');
@ -46,6 +47,7 @@ Route::post('/studio/profile', [UserController::class, 'editProfile'])->name('ed
Route::group([ Route::group([
'middleware' => 'admin', 'middleware' => 'admin',
], function () { ], function () {
URL::forceScheme('https'); # comment to disable https
Route::get('/panel/index', [AdminController::class, 'index'])->name('panelIndex'); Route::get('/panel/index', [AdminController::class, 'index'])->name('panelIndex');
Route::get('/panel/users/{type}', [AdminController::class, 'users'])->name('showUsers'); Route::get('/panel/users/{type}', [AdminController::class, 'users'])->name('showUsers');
Route::post('/panel/users/{name?}', [AdminController::class, 'searchUser'])->name('searchUser'); Route::post('/panel/users/{name?}', [AdminController::class, 'searchUser'])->name('searchUser');
@ -58,5 +60,4 @@ Route::get('/panel/site', [AdminController::class, 'showSite'])->name('showSite'
Route::post('/panel/site', [AdminController::class, 'editSite'])->name('editSite'); Route::post('/panel/site', [AdminController::class, 'editSite'])->name('editSite');
}); });
require __DIR__.'/auth.php'; require __DIR__.'/auth.php';