Initial commit of RIC Dashboard webapp
[portal/ric-dashboard.git] / webapp-frontend / src / app / app-routing.module.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * ORAN-OSC
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 import { LoginComponent } from './login/login.component';
24 import { CatalogComponent } from './catalog/catalog.component';
25 import { ControlComponent } from './control/control.component';
26 import { StatsComponent } from './stats/stats.component';
27 import { AdminComponent } from './admin/admin.component';
28 import { XappComponent } from './xapp/xapp.component';
29
30 const routes: Routes = [
31     {path: '', component: LoginComponent},
32     {path: 'login', component: LoginComponent},
33     {path: 'catalog', component: CatalogComponent},
34     {path: 'control', component: ControlComponent},
35     {path: 'stats', component: StatsComponent},
36     {path: 'admin', component: AdminComponent},
37     {path: 'xapp', component: XappComponent},
38 ];
39
40 @NgModule({
41   imports: [
42       CommonModule,
43       RouterModule.forRoot(routes)],
44   exports: [
45       RouterModule
46     ],
47     declarations: []
48 })
49 export class AppRoutingModule { }