|
@@ -4,6 +4,7 @@ import { authGuard } from './guard-auth/auth.guard';
|
|
import { PageInfoComponent } from './page-info/page-info.component';
|
|
import { PageInfoComponent } from './page-info/page-info.component';
|
|
import { PageLoginComponent } from './page-login/page-login.component';
|
|
import { PageLoginComponent } from './page-login/page-login.component';
|
|
import { PageRegisterComponent } from './page-register/page-register.component';
|
|
import { PageRegisterComponent } from './page-register/page-register.component';
|
|
|
|
+import { PageAddComponent } from './page-add/page-add.component';
|
|
|
|
|
|
const routes: Routes = [
|
|
const routes: Routes = [
|
|
{path:"login",component:PageLoginComponent},
|
|
{path:"login",component:PageLoginComponent},
|
|
@@ -11,7 +12,8 @@ const routes: Routes = [
|
|
{
|
|
{
|
|
path:"info",component:PageInfoComponent,
|
|
path:"info",component:PageInfoComponent,
|
|
canActivate:[authGuard]
|
|
canActivate:[authGuard]
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ { path: 'add', component: PageAddComponent },
|
|
];
|
|
];
|
|
|
|
|
|
@NgModule({
|
|
@NgModule({
|