blob: abc6ee00533235715afb3a244259d3e25996f818 [file] [log] [blame]
Sean Condona00bf382018-06-23 07:54:01 +01001/*
2 * Copyright 2014-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { NgModule } from '@angular/core';
17import { Routes, RouterModule } from '@angular/router';
18
19const onosRoutes: Routes = [
20 {
21 path: 'apps',
22 loadChildren: 'app/view/apps/apps.module#AppsModule'
23 },
24 {
25 path: 'devices',
26 loadChildren: 'app/view/device/device.module#DeviceModule'
27 },
28 {
29 path: '',
30 redirectTo: '',
31 pathMatch: 'full'
32 }
33];
34
35/**
36 * ONOS GUI -- Main Routing Module - allows modules to be lazy loaded
37 *
38 * See https://angular.io/guide/lazy-loading-ngmodules
39 * for the theory of operation
40 */
41@NgModule({
42 imports: [
43 RouterModule.forRoot(onosRoutes)
44 ],
45 exports: [RouterModule],
46 providers: []
47})
48export class OnosRoutingModule { }