1c80641cfc0e7e2e5adb05a6eb65426c846760ce
[portal/ric-dashboard.git] / webapp-frontend / src / app / rd-routing.module.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 AT&T Intellectual Property and Nokia
6  * %%
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ========================LICENSE_END===================================
19  */
20 import { NgModule } from '@angular/core';
21 import { CommonModule } from '@angular/common';
22 import { Routes, RouterModule } from '@angular/router';
23
24 import { AcXappComponent } from './ac-xapp/ac-xapp.component';
25 import { AnrXappComponent } from './anr-xapp/anr-xapp.component';
26 import { CatalogComponent } from './catalog/catalog.component';
27 import { ControlComponent } from './control/control.component';
28 import { LoginComponent } from './login/login.component';
29 import { StatsComponent } from './stats/stats.component';
30 import { UserComponent } from './user/user.component';
31
32 const routes: Routes = [
33     {path: '', component: LoginComponent},
34     {path: 'login', component: LoginComponent},
35     {path: 'catalog', component: CatalogComponent},
36     {path: 'control', component: ControlComponent},
37     {path: 'ac', component: AcXappComponent},
38     {path: 'anr', component: AnrXappComponent},
39     {path: 'stats', component: StatsComponent},
40     {path: 'user', component: UserComponent},
41 ];
42
43 @NgModule({
44   imports: [
45       CommonModule,
46       RouterModule.forRoot(routes)],
47   exports: [
48       RouterModule
49     ],
50     declarations: []
51 })
52
53 export class RdRoutingModule { }