docs: configurando deploy via ssh para angular
This commit is contained in:
26
src/app/app-routing.module.ts
Normal file
26
src/app/app-routing.module.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { AuthGuard } from './guards/auth.guard';
|
||||
import { MenuComponent } from './menu/menu.component';
|
||||
import { MenuEcosistemaComponent } from './menu-ecosistema/menu-ecosistema.component';
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: 'sales/home', pathMatch: 'full' },
|
||||
// loadChildren: () => import('./sales/sales.module').then(m => m.SalesModule), canActivate: [AuthGuard] },
|
||||
{ path: 'login', loadChildren: () => import('./auth/auth.module').then(m => m.AuthModule)},
|
||||
{ path: 'menu', component: MenuEcosistemaComponent},
|
||||
{ path: 'financial', loadChildren: () => import('./financial/financial.module').then(m => m.FinancialModule), canActivate: [AuthGuard] },
|
||||
{ path: 'sales', loadChildren: () => import('./sales/sales.module').then(m => m.SalesModule), canActivate: [AuthGuard] },
|
||||
{ path: 'crm', loadChildren: () => import('./crm/crm.module').then(m => m.CrmModule), canActivate: [AuthGuard] },
|
||||
{ path: 'partner', loadChildren: () => import('./partners/partners.module').then(m => m.PartnersModule), canActivate: [AuthGuard] },
|
||||
{ path: 'admin', loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule), canActivate: [AuthGuard] },
|
||||
{ path: 'dashboardcompany', loadChildren: () =>
|
||||
import('./sales/pages/dashboard-company/dashboard-company.module').then(m => m.DashboardCompanyModule)},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes, {useHash: true})],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class AppRoutingModule { }
|
||||
Reference in New Issue
Block a user