first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\TonerController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/login', function () {
|
||||
return view('auth.login');
|
||||
});
|
||||
|
||||
Route::get('index/{locale}', [App\Http\Controllers\HomeController::class, 'lang']);
|
||||
|
||||
Auth::routes();
|
||||
|
||||
Route::middleware(['auth'])->group(function () {
|
||||
Route::get('/', [App\Http\Controllers\HomeController::class, 'index'])->name('index');
|
||||
Route::get('logout', [TonerController::class, 'logout']);
|
||||
|
||||
Route::get('{any}', [TonerController::class, 'index']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user