feat(routes): tambahkan rute untuk MigrasiController
- Mengganti WebstatementController dengan MigrasiController pada rute web. - Menambahkan rute baru untuk mengakses fungsi index di MigrasiController. - Menggunakan middleware 'auth' untuk melindungi rute migrasi.
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Modules\Webstatement\Http\Controllers\WebstatementController;
|
use Modules\Webstatement\Http\Controllers\MigrasiController;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Web Routes
|
| Web Routes
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here is where you can register web routes for your application. These
|
| Here is where you can register web routes for your application. These
|
||||||
| routes are loaded by the RouteServiceProvider within a group which
|
| routes are loaded by the RouteServiceProvider within a group which
|
||||||
| contains the "web" middleware group. Now create something great!
|
| contains the "web" middleware group. Now create something great!
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::group([], function () {
|
Route::middleware(['auth'])->group(function () {});
|
||||||
Route::resource('webstatement', WebstatementController::class)->names('webstatement');
|
|
||||||
});
|
Route::get('migrasi', [MigrasiController::class, 'index'])->name('migrasi.index');
|
||||||
|
|||||||
Reference in New Issue
Block a user