diff options
author | Mohamed Asgar Samiulla(ma926a) <ma926a@us.att.com> | 2018-04-02 19:00:49 +0530 |
---|---|---|
committer | Skip Wonnell <skip@att.com> | 2018-04-09 11:24:18 -0500 |
commit | d7dffc2d1c65788e68a7fabdc16e5afd90de0f67 (patch) | |
tree | a5fef0028c4c325f11c464c8cfb39858ecc5ac8b /src/app/app.routing.ts | |
parent | f27d5549734324727a5432f6ff663b0880425f47 (diff) |
[Appc-1806] Login for Test screen, test api urls.
Test API urls corrected and vserverid removed from poll request.
Issue-ID: APPC-831
Change-Id: I0bc616888afee8683ccbf5238980e97c6ca51af6
Signed-off-by: Mohamed Asgar Samiulla(ma926a) <ma926a@us.att.com>
Diffstat (limited to 'src/app/app.routing.ts')
-rw-r--r-- | src/app/app.routing.ts | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts index 234487e..edc7323 100644 --- a/src/app/app.routing.ts +++ b/src/app/app.routing.ts @@ -16,36 +16,40 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -ECOMP is a trademark and service mark of AT&T Intellectual Property. ============LICENSE_END============================================ */ -import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; + +import {AboutUsComponent} from './about-us/aboutus.component'; +import { CanActivate } from '@angular/router'; +import {HelpComponent} from './shared/components/help/help/help.component'; import {HomeComponent} from './home/home/home.component'; +import { LoginGuardService } from './vnfs/LoginGuardService/Login-guard-service'; import {LogoutComponent} from './shared/components/logout/logout.component'; -import {HelpComponent} from './shared/components/help/help/help.component'; -import {AboutUsComponent} from './about-us/aboutus.component'; +import {NgModule} from '@angular/core'; import {TestComponent} from './test/test.component'; const routes: Routes = [ { path: 'home', - component: HomeComponent + component: HomeComponent, }, { path: 'vnfs', loadChildren: './vnfs/vnfs.module#VnfsModule' }, { path: 'test', - component: TestComponent + component: TestComponent, + canActivate:[LoginGuardService] }, { path: 'help', - component: HelpComponent + component: HelpComponent, + canActivate:[LoginGuardService] }, { path: 'aboutUs', - component: AboutUsComponent + component: AboutUsComponent, + canActivate:[LoginGuardService] }, { path: 'logout', component: LogoutComponent @@ -58,7 +62,8 @@ const routes: Routes = [ @NgModule({ imports: [RouterModule.forRoot(routes)], - exports: [RouterModule] + +exports: [RouterModule] }) export class AppRoutingModule { -}
\ No newline at end of file +} |