2019-06-13 19:02:34 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2019-07-11 06:47:41 +00:00
|
|
|
import {LoginComponent} from './auth/login/login.component';
|
|
|
|
import {LogoutComponent} from './auth/logout/logout.component';
|
|
|
|
import {HomeComponent} from './home/home.component';
|
2019-06-13 19:02:34 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2019-08-21 04:32:28 +00:00
|
|
|
{
|
|
|
|
path: 'bill-settlement-report',
|
|
|
|
loadChildren: () => import('./bill-settlement-report/bill-settlement-report.module').then(mod => mod.BillSettlementReportModule)
|
|
|
|
},
|
2019-08-19 10:28:02 +00:00
|
|
|
{
|
|
|
|
path: 'checkout',
|
|
|
|
loadChildren: () => import('./cashier-checkout/cashier-checkout.module').then(mod => mod.CashierCheckoutModule)
|
|
|
|
},
|
2019-06-17 07:53:00 +00:00
|
|
|
{
|
2019-07-06 08:16:18 +00:00
|
|
|
path: 'devices',
|
|
|
|
loadChildren: () => import('./devices/devices.module').then(mod => mod.DevicesModule)
|
2019-06-17 07:53:00 +00:00
|
|
|
},
|
2019-06-13 19:02:34 +00:00
|
|
|
{
|
|
|
|
path: 'guest-book',
|
|
|
|
loadChildren: () => import('./guest-book/guest-book.module').then(mod => mod.GuestBookModule)
|
|
|
|
},
|
2019-06-22 03:19:33 +00:00
|
|
|
{
|
|
|
|
path: 'modifiers',
|
|
|
|
loadChildren: () => import('./modifiers/modifiers.module').then(mod => mod.ModifiersModule)
|
|
|
|
},
|
2019-06-20 12:15:28 +00:00
|
|
|
{
|
|
|
|
path: 'modifier-categories',
|
|
|
|
loadChildren: () => import('./modifier-categories/modifier-categories.module').then(mod => mod.ModifierCategoriesModule)
|
|
|
|
},
|
2019-06-19 20:29:11 +00:00
|
|
|
{
|
|
|
|
path: 'printers',
|
|
|
|
loadChildren: () => import('./printers/printers.module').then(mod => mod.PrintersModule)
|
|
|
|
},
|
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
|
|
|
},
|
2019-08-21 03:57:19 +00:00
|
|
|
{
|
|
|
|
path: 'product-sale-report',
|
|
|
|
loadChildren: () => import('./product-sale-report/product-sale-report.module').then(mod => mod.ProductSaleReportModule)
|
|
|
|
},
|
2019-06-15 17:39:43 +00:00
|
|
|
{
|
2019-06-20 07:45:23 +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)
|
|
|
|
},
|
2019-06-15 07:34:25 +00:00
|
|
|
{
|
2019-07-06 08:16:18 +00:00
|
|
|
path: 'sales',
|
|
|
|
loadChildren: () => import('./sales/sales.module').then(mod => mod.SalesModule)
|
2019-06-15 07:34:25 +00:00
|
|
|
},
|
2019-08-20 17:32:17 +00:00
|
|
|
{
|
|
|
|
path: 'sale-analysis',
|
|
|
|
loadChildren: () => import('./sale-analysis/sale-analysis.module').then(mod => mod.SaleAnalysisModule)
|
|
|
|
},
|
2019-06-20 07:45:23 +00:00
|
|
|
{
|
|
|
|
path: 'sale-categories',
|
|
|
|
loadChildren: () => import('./sale-category/sale-categories.module').then(mod => mod.SaleCategoriesModule)
|
|
|
|
},
|
2019-06-22 20:05:00 +00:00
|
|
|
{
|
|
|
|
path: 'sections',
|
|
|
|
loadChildren: () => import('./sections/sections.module').then(mod => mod.SectionsModule)
|
|
|
|
},
|
2019-06-25 11:14:59 +00:00
|
|
|
{
|
|
|
|
path: 'section-printers',
|
|
|
|
loadChildren: () => import('./section-printers/section-printers.module').then(mod => mod.SectionPrintersModule)
|
|
|
|
},
|
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-08-21 03:02:12 +00:00
|
|
|
{
|
|
|
|
path: 'tax-analysis',
|
|
|
|
loadChildren: () => import('./tax-analysis/tax-analysis.module').then(mod => mod.TaxAnalysisModule)
|
|
|
|
},
|
2019-06-19 18:47:44 +00:00
|
|
|
{
|
|
|
|
path: 'users',
|
|
|
|
loadChildren: () => import('./users/users.module').then(mod => mod.UsersModule)
|
|
|
|
},
|
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 { }
|