2019-06-13 19:02:34 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import {LoginComponent} from "./auth/login/login.component";
|
|
|
|
import {LogoutComponent} from "./auth/logout/logout.component";
|
|
|
|
import {HomeComponent} from "./home/home.component";
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: 'guest-book',
|
|
|
|
loadChildren: () => import('./guest-book/guest-book.module').then(mod => mod.GuestBookModule)
|
|
|
|
},
|
2019-06-15 17:39:43 +00:00
|
|
|
{
|
|
|
|
path: 'products',
|
2019-06-16 12:15:16 +00:00
|
|
|
loadChildren: () => import('./product/products.module').then(mod => mod.ProductsModule)
|
2019-06-15 17:39:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'product-groups',
|
2019-06-15 20:09:37 +00:00
|
|
|
loadChildren: () => import('./product-group/product-groups.module').then(mod => mod.ProductGroupsModule)
|
2019-06-15 17:39:43 +00:00
|
|
|
},
|
2019-06-15 07:34:25 +00:00
|
|
|
{
|
|
|
|
path: 'running-tables',
|
|
|
|
loadChildren: () => import('./running-tables/running-tables.module').then(mod => mod.RunningTablesModule)
|
|
|
|
},
|
2019-06-14 03:58:30 +00:00
|
|
|
{
|
|
|
|
path: 'tables',
|
|
|
|
loadChildren: () => import('./tables/tables.module').then(mod => mod.TableModule)
|
|
|
|
},
|
2019-06-15 17:39:43 +00:00
|
|
|
{
|
|
|
|
path: 'taxes',
|
|
|
|
loadChildren: () => import('./taxes/taxes.module').then(mod => mod.TaxesModule)
|
|
|
|
},
|
2019-06-13 19:02:34 +00:00
|
|
|
{path: 'login', component: LoginComponent},
|
|
|
|
{path: 'logout', component: LogoutComponent},
|
|
|
|
{path: '', component: HomeComponent},
|
|
|
|
];
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes,
|
|
|
|
{
|
|
|
|
onSameUrlNavigation: 'reload',
|
|
|
|
})],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|