fix dashboard route issue

This commit is contained in:
Steven Zou 2017-03-14 18:37:05 +08:00
parent e17a919e5f
commit f6b9427de5
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: [ children: [
{ path: 'sign-in', component: SignInComponent, canActivate: [SignInGuard] }, { path: 'sign-in', component: SignInComponent, canActivate: [SignInGuard] },
{ path: 'sign-up', component: SignUpComponent }, { path: 'sign-up', component: SignUpComponent },
{ path: 'dashboard', component: StartPageComponent }, { path: 'dashboard', component: StartPageComponent, canActivate: [AuthCheckGuard]},
{ {
path: 'projects', path: 'projects',
component: ProjectComponent, component: ProjectComponent,