barker/bookie/src/app/app-routing.module.ts

64 lines
2.0 KiB
TypeScript
Raw Normal View History

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 = [
2019-06-17 07:53:00 +00:00
{
path: 'bills',
loadChildren: () => import('./bills/bills.module').then(mod => mod.BillsModule)
},
{
path: 'guest-book',
loadChildren: () => import('./guest-book/guest-book.module').then(mod => mod.GuestBookModule)
},
{
path: 'printers',
loadChildren: () => import('./printers/printers.module').then(mod => mod.PrintersModule)
},
2019-06-15 17:39:43 +00:00
{
path: 'products',
loadChildren: () => import('./product/products.module').then(mod => mod.ProductsModule)
2019-06-15 17:39:43 +00:00
},
{
path: 'menu-categories',
loadChildren: () => import('./menu-category/menu-categories.module').then(mod => mod.MenuCategoriesModule)
2019-06-15 17:39:43 +00:00
},
2019-06-19 18:25:42 +00:00
{
path: 'roles',
loadChildren: () => import('./roles/roles.module').then(mod => mod.RolesModule)
},
{
path: 'running-tables',
loadChildren: () => import('./running-tables/running-tables.module').then(mod => mod.RunningTablesModule)
},
{
path: 'sale-categories',
loadChildren: () => import('./sale-category/sale-categories.module').then(mod => mod.SaleCategoriesModule)
},
{
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-19 18:47:44 +00:00
{
path: 'users',
loadChildren: () => import('./users/users.module').then(mod => mod.UsersModule)
},
{path: 'login', component: LoginComponent},
{path: 'logout', component: LogoutComponent},
{path: '', component: HomeComponent},
];
@NgModule({
imports: [RouterModule.forRoot(routes,
{
onSameUrlNavigation: 'reload',
})],
exports: [RouterModule]
})
export class AppRoutingModule { }