| .. | .. |
|---|
| 3 | 3 | import { HomeComponent } from './home.component'; |
|---|
| 4 | 4 | import { MenuComponent } from './menu.component'; |
|---|
| 5 | 5 | 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'; |
|---|
| 9 | 13 | |
|---|
| 10 | 14 | const routes: Routes = [ |
|---|
| 11 | 15 | {path: 'public', component: NoMenuComponent, children: [ |
|---|
| .. | .. |
|---|
| 16 | 20 | children: [ |
|---|
| 17 | 21 | {path: 'packs', children: [ |
|---|
| 18 | 22 | {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} |
|---|
| 21 | 34 | ] |
|---|
| 22 | 35 | }, |
|---|
| 23 | 36 | |
|---|