2024-04-04 12:19:56 +00:00
|
|
|
<?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!
|
|
|
|
|
|
2024-04-10 09:30:24 +00:00
|
|
|
*/
|
2024-04-04 12:19:56 +00:00
|
|
|
|
2024-04-10 12:21:18 +00:00
|
|
|
Route::middleware('auth')->group(
|
|
|
|
function () {
|
2024-04-10 09:30:24 +00:00
|
|
|
|
2024-04-10 12:21:18 +00:00
|
|
|
Route::prefix('employee')->as('employee.')->group(function () {
|
|
|
|
|
|
|
|
Route::post('assignRole', [EmployeeController::class, 'assignRole'])->name('assignRole');
|
|
|
|
Route::post('changePassword', [EmployeeController::class, 'changePassword'])->name('assignRole');
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::resource('employee', EmployeeController::class)->names('employee');
|
|
|
|
|
|
|
|
}
|
|
|
|
);
|