1- import { NgModule } from '@angular/core' ;
1+ import { NgModule } from '@angular/core' ;
22import { RouterModule , Routes } from '@angular/router' ;
3- import { ApplicationsComponent } from '../applications/applications.component' ;
3+ import { ApplicationsComponent } from '../applications/applications.component' ;
44import { CertificatesComponent } from '../certificates/certificates.component' ;
5- import { ApplicationDetailComponent } from '../application-detail/application-detail.component' ;
5+ import { ApplicationDetailComponent } from '../application-detail/application-detail.component' ;
66import { LoginFormComponent } from '../login-form/login-form.component' ;
77import { CertificateDetailComponent } from '../certificate-detail/certificate-detail.component' ;
88import { UsermgmtComponent } from '../usermgmt/usermgmt.component' ;
99import { UserDetailComponent } from '../user-detail/user-detail.component' ;
10- import { FirewallComponent } from '../firewall/firewall .component' ;
10+ import { WAFComponent } from '../waf/waf .component' ;
1111import { PolicyComponent } from '../policy/policy.component' ;
1212import { NodesComponent } from '../nodes/nodes.component' ;
1313import { NodeDetailComponent } from '../node-detail/node-detail.component' ;
@@ -24,38 +24,42 @@ import { VipAppsComponent } from '../vip-apps/vip-apps.component';
2424import { VipAppComponent } from '../vip-app/vip-app.component' ;
2525import { RefererComponent } from '../referer/referer.component' ;
2626import { AuthcodeRegisterComponent } from '../authcode-register/authcode-register.component' ;
27+ import { CcComponent } from '../cc/cc.component' ;
28+ import { IpPolicyComponent } from '../ip-policy/ip-policy.component' ;
2729
2830
2931const routes : Routes = [
30- { path : '' , redirectTo : '/index.html' , pathMatch : 'full' } ,
31- { path : 'index.html' , component : FrontpageComponent } ,
32- { path : 'dashboard' , component : DashboardComponent } ,
33- { path : 'application/:id' , component : ApplicationDetailComponent } ,
34- { path : 'applications' , component : ApplicationsComponent } ,
35- { path : 'forwarding' , component : VipAppsComponent } ,
36- { path : 'vip/:id' , component : VipAppComponent } ,
37- { path : 'certificates' , component : CertificatesComponent } ,
38- { path : 'certificate/:id' , component : CertificateDetailComponent } ,
39- { path : 'usermgmt' , component : UsermgmtComponent } ,
40- { path : 'appuser/:id' , component : UserDetailComponent } ,
41- { path : 'waf' , component : FirewallComponent } ,
42- { path : 'policy/:id' , component : PolicyComponent } ,
43- { path : 'nodes' , component : NodesComponent } ,
44- { path : 'node/:id' , component : NodeDetailComponent } ,
45- { path : 'logs' , component : LogsComponent } ,
46- { path : 'cclogs' , component : CCLogsComponent } ,
47- { path : 'settings' , component : SettingsComponent } ,
48- { path : 'log/:id' , component : LogDetailComponent } ,
49- { path : 'cclog/:id' , component : CCLogDetailComponent } ,
50- { path : 'login' , component : LoginFormComponent } ,
51- { path : 'ssh' , component : WebsshComponent } ,
52- { path : 'health' , component : HealthCheckComponent } ,
53- { path : 'referring/:app_id/:host' , component : RefererComponent } ,
54- { path : 'authcode-register' , component : AuthcodeRegisterComponent }
32+ { path : '' , redirectTo : '/index.html' , pathMatch : 'full' } ,
33+ { path : 'index.html' , component : FrontpageComponent } ,
34+ { path : 'dashboard' , component : DashboardComponent } ,
35+ { path : 'application/:id' , component : ApplicationDetailComponent } ,
36+ { path : 'applications' , component : ApplicationsComponent } ,
37+ { path : 'forwarding' , component : VipAppsComponent } ,
38+ { path : 'vip/:id' , component : VipAppComponent } ,
39+ { path : 'certificates' , component : CertificatesComponent } ,
40+ { path : 'certificate/:id' , component : CertificateDetailComponent } ,
41+ { path : 'usermgmt' , component : UsermgmtComponent } ,
42+ { path : 'appuser/:id' , component : UserDetailComponent } ,
43+ { path : 'waf' , component : WAFComponent } ,
44+ { path : 'cc' , component : CcComponent } ,
45+ { path : 'ip-policy' , component : IpPolicyComponent } ,
46+ { path : 'policy/:id' , component : PolicyComponent } ,
47+ { path : 'nodes' , component : NodesComponent } ,
48+ { path : 'node/:id' , component : NodeDetailComponent } ,
49+ { path : 'logs' , component : LogsComponent } ,
50+ { path : 'cclogs' , component : CCLogsComponent } ,
51+ { path : 'settings' , component : SettingsComponent } ,
52+ { path : 'log/:id' , component : LogDetailComponent } ,
53+ { path : 'cclog/:id' , component : CCLogDetailComponent } ,
54+ { path : 'login' , component : LoginFormComponent } ,
55+ { path : 'ssh' , component : WebsshComponent } ,
56+ { path : 'health' , component : HealthCheckComponent } ,
57+ { path : 'referring/:app_id/:host' , component : RefererComponent } ,
58+ { path : 'authcode-register' , component : AuthcodeRegisterComponent }
5559] ;
5660
5761@NgModule ( {
58- imports : [ RouterModule . forRoot ( routes ) ] ,
59- exports : [ RouterModule ]
62+ imports : [ RouterModule . forRoot ( routes ) ] ,
63+ exports : [ RouterModule ]
6064} )
61- export class AppRoutingModule { }
65+ export class AppRoutingModule { }
0 commit comments