Skip to content

Commit 5066d9a

Browse files
author
Bezael
committed
PrimeraParte
1 parent d53ad9f commit 5066d9a

35 files changed

+501
-554
lines changed

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@angular/platform-browser": "~10.0.3",
2424
"@angular/platform-browser-dynamic": "~10.0.3",
2525
"@angular/router": "~10.0.3",
26+
"@auth0/angular-jwt": "^5.0.1",
2627
"concurrently": "^5.2.0",
2728
"rxjs": "~6.5.5",
2829
"tslib": "^2.0.0",

src/app/app-routing.module.ts

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,33 @@
11
import { NgModule } from '@angular/core';
22
import { Routes, RouterModule } from '@angular/router';
33

4-
5-
const routes: Routes = [{ path: 'home', loadChildren: () => import('./pages/home/home.module').then(m => m.HomeModule) }, { path: 'notFound', loadChildren: () => import('./pages/not-found/not-found.module').then(m => m.NotFoundModule) }];
4+
const routes: Routes = [
5+
{
6+
path: '',
7+
loadChildren: () =>
8+
import('./pages/home/home.module').then((m) => m.HomeModule),
9+
},
10+
{
11+
path: 'notFound',
12+
loadChildren: () =>
13+
import('./pages/not-found/not-found.module').then(
14+
(m) => m.NotFoundModule
15+
),
16+
},
17+
{
18+
path: 'admin',
19+
loadChildren: () =>
20+
import('./pages/admin/admin.module').then((m) => m.AdminModule),
21+
},
22+
{
23+
path: 'login',
24+
loadChildren: () =>
25+
import('./pages/auth/login/login.module').then((m) => m.LoginModule),
26+
},
27+
];
628

729
@NgModule({
830
imports: [RouterModule.forRoot(routes)],
9-
exports: [RouterModule]
31+
exports: [RouterModule],
1032
})
11-
export class AppRoutingModule { }
33+
export class AppRoutingModule {}

0 commit comments

Comments
 (0)