response()->json([ 'message' => Config::string('app.name') . ' v1', 'spec' => route('api.v1.openapi'), ]))->name('root'); // * OPENAPI Route::get('/openapi', function () { return response()->file( base_path('documentation/OpenApi/openapi.yaml'), ['Content-Type' => 'application/yaml'] ); })->name('openapi'); // * EMPLOYEES Route::prefix('employees')->group(function () { Route::get('/', EmployeesIndexController::class)->name('employees.index'); Route::get('/{employeeId}', EmployeeShowController::class)->name('employees.show'); });