Merge pull request #1594 from vmware/feature/merge_ui_code_to_fix_issues

fix dashboard route issue
This commit is contained in:
kun wang 2017-03-14 18:40:07 +08:00 committed by GitHub
commit d7327a70d2
2 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,42 @@
{
"/api/*": {
"target": "http://10.117.4.165",
"secure": false,
"logLevel": "debug"
},
"/service/*": {
"target": "http://10.117.4.165",
"secure": false,
"logLevel": "debug"
},
"/login": {
"target": "http://10.117.4.165",
"secure": false,
"logLevel": "debug"
},
"/sign_in": {
"target": "http://10.117.4.165",
"secure": false,
"logLevel": "debug"
},
"/log_out": {
"target": "http://10.117.4.165",
"secure": false,
"logLevel": "debug"
},
"/sendEmail": {
"target": "http://10.117.4.165",
"secure": false,
"logLevel": "debug"
},
"/language": {
"target": "http://10.117.4.165",
"secure": false,
"logLevel": "debug"
},
"/reset": {
"target": "http://10.117.4.165",
"secure": false,
"logLevel": "debug"
}
}

View File

@ -44,7 +44,7 @@ const harborRoutes: Routes = [
children: [
{ path: 'sign-in', component: SignInComponent, canActivate: [SignInGuard] },
{ path: 'sign-up', component: SignUpComponent },
{ path: 'dashboard', component: StartPageComponent },
{ path: 'dashboard', component: StartPageComponent, canActivate: [AuthCheckGuard]},
{
path: 'projects',
component: ProjectComponent,