rsanchez
2017-03-19 280daa7f3f858ecfef9c91ffd5dea1007f021048
securis/src/main/webapp/src/app/app.routes.ts
....@@ -3,9 +3,13 @@
33 import { HomeComponent } from './home.component';
44 import { MenuComponent } from './menu.component';
55 import { NoMenuComponent } from './nomenu.component';
6
-import { PackListComponent } from './pack.list.component';
7
-import { LicenseListComponent } from './license.list.component';
8
-import { LoginFormComponent } from './login.form.component';
6
+import { PackListComponent } from './listing/pack.list.component';
7
+import { LicenseListComponent } from './listing/license.list.component';
8
+import { LicenseFormComponent } from './forms/license.form.component';
9
+import { PackFormComponent } from './forms/pack.form.component';
10
+import { LoginFormComponent } from './forms/login.form.component';
11
+import { ApplicationFormComponent } from './forms/application.form.component';
12
+import { ApplicationListComponent } from './listing/application.list.component';
913
1014 const routes: Routes = [
1115 {path: 'public', component: NoMenuComponent, children: [
....@@ -16,8 +20,17 @@
1620 children: [
1721 {path: 'packs', children: [
1822 {path: '', component: PackListComponent },
19
- {path: ':id/licenses', component: LicenseListComponent },
20
- ]}
23
+ {path: 'create', component: PackFormComponent},
24
+ {path: 'edit/:packId', component: PackFormComponent},
25
+
26
+ {path: ':packId/licenses', component: LicenseListComponent},
27
+ {path: ':packId/licenses/edit/:licenseId', component: LicenseFormComponent },
28
+ {path: ':packId/licenses/create', component: LicenseFormComponent },
29
+
30
+ ]},
31
+ {path: 'applications', component: ApplicationListComponent},
32
+ {path: 'applications/create', component: ApplicationFormComponent},
33
+ {path: 'applications/edit/:applicationId', component: ApplicationFormComponent}
2134 ]
2235 },
2336