26 lines
796 B
PHP
26 lines
796 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Employee\Http\Controllers\EmployeeController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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::group(['middleware' => 'auth'], function () {
|
|
Route::post('assignRole', [EmployeeController::class, 'assignRole'])->name('employee.assignRole');
|
|
Route::resource('employee', EmployeeController::class)->names('employee');
|
|
Route::group(['prefix' => 'employee'], function () {
|
|
});
|
|
|
|
});
|
|
|
|
|