first commit
This commit is contained in:
29
Modules/Employee/routes/web.php
Normal file
29
Modules/Employee/routes/web.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?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::middleware('auth')->group(
|
||||
function () {
|
||||
|
||||
Route::prefix('employee')->as('employee.')->group(function () {
|
||||
Route::post('get-employee-by-id', [EmployeeController::class, 'getEmployeeById'])->name('getEmployeeById');
|
||||
Route::post('assignRole', [EmployeeController::class, 'assignRole'])->name('assignRole');
|
||||
Route::post('changePassword', [EmployeeController::class, 'changePassword'])->name('changePassword');
|
||||
});
|
||||
|
||||
Route::resource('employee', EmployeeController::class)->names('employee');
|
||||
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user