2019-06-13 19:02:34 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2020-10-11 05:26:29 +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 05:42:30 +00:00
|
|
|
{
|
|
|
|
path: 'beer-consumption-report',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./beer-consumption-report/beer-consumption-report.module').then(
|
|
|
|
(mod) => mod.BeerConsumptionReportModule,
|
|
|
|
),
|
2019-08-21 05:42:30 +00:00
|
|
|
},
|
2019-08-21 04:32:28 +00:00
|
|
|
{
|
|
|
|
path: 'bill-settlement-report',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./bill-settlement-report/bill-settlement-report.module').then(
|
|
|
|
(mod) => mod.BillSettlementReportModule,
|
|
|
|
),
|
2019-08-21 04:32:28 +00:00
|
|
|
},
|
2019-08-19 10:28:02 +00:00
|
|
|
{
|
2019-08-25 09:38:59 +00:00
|
|
|
path: 'cashier-report',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./cashier-report/cashier-report.module').then((mod) => mod.CashierReportModule),
|
2019-08-19 10:28:02 +00:00
|
|
|
},
|
2019-06-17 07:53:00 +00:00
|
|
|
{
|
2019-07-06 08:16:18 +00:00
|
|
|
path: 'devices',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./devices/devices.module').then((mod) => mod.DevicesModule),
|
2019-06-17 07:53:00 +00:00
|
|
|
},
|
2019-08-21 07:01:52 +00:00
|
|
|
{
|
|
|
|
path: 'discount-report',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./discount-report/discount-report.module').then((mod) => mod.DiscountReportModule),
|
2019-08-21 07:01:52 +00:00
|
|
|
},
|
2019-06-13 19:02:34 +00:00
|
|
|
{
|
|
|
|
path: 'guest-book',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./guest-book/guest-book.module').then((mod) => mod.GuestBookModule),
|
2019-06-13 19:02:34 +00:00
|
|
|
},
|
2019-06-22 03:19:33 +00:00
|
|
|
{
|
|
|
|
path: 'modifiers',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./modifiers/modifiers.module').then((mod) => mod.ModifiersModule),
|
2019-06-22 03:19:33 +00:00
|
|
|
},
|
2019-06-20 12:15:28 +00:00
|
|
|
{
|
|
|
|
path: 'modifier-categories',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./modifier-categories/modifier-categories.module').then(
|
|
|
|
(mod) => mod.ModifierCategoriesModule,
|
|
|
|
),
|
2019-06-20 12:15:28 +00:00
|
|
|
},
|
2019-06-19 20:29:11 +00:00
|
|
|
{
|
|
|
|
path: 'printers',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./printers/printers.module').then((mod) => mod.PrintersModule),
|
2019-06-19 20:29:11 +00:00
|
|
|
},
|
2019-06-15 17:39:43 +00:00
|
|
|
{
|
|
|
|
path: 'products',
|
2020-10-11 05:26:29 +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',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./product-sale-report/product-sale-report.module').then(
|
|
|
|
(mod) => mod.ProductSaleReportModule,
|
|
|
|
),
|
2019-08-21 03:57:19 +00:00
|
|
|
},
|
2019-06-15 17:39:43 +00:00
|
|
|
{
|
2019-06-20 07:45:23 +00:00
|
|
|
path: 'menu-categories',
|
2020-10-11 05:26:29 +00:00
|
|
|
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',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./roles/roles.module').then((mod) => mod.RolesModule),
|
2019-06-19 18:25:42 +00:00
|
|
|
},
|
2019-06-15 07:34:25 +00:00
|
|
|
{
|
2019-07-06 08:16:18 +00:00
|
|
|
path: 'sales',
|
2020-10-11 05:26:29 +00:00
|
|
|
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
|
|
|
{
|
2019-08-25 09:38:59 +00:00
|
|
|
path: 'sale-report',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./sale-report/sale-report.module').then((mod) => mod.SaleReportModule),
|
2019-08-20 17:32:17 +00:00
|
|
|
},
|
2019-06-20 07:45:23 +00:00
|
|
|
{
|
|
|
|
path: 'sale-categories',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./sale-category/sale-categories.module').then((mod) => mod.SaleCategoriesModule),
|
2019-06-20 07:45:23 +00:00
|
|
|
},
|
2019-06-22 20:05:00 +00:00
|
|
|
{
|
|
|
|
path: 'sections',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./sections/sections.module').then((mod) => mod.SectionsModule),
|
2019-06-22 20:05:00 +00:00
|
|
|
},
|
2019-06-25 11:14:59 +00:00
|
|
|
{
|
|
|
|
path: 'section-printers',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./section-printers/section-printers.module').then((mod) => mod.SectionPrintersModule),
|
2019-06-25 11:14:59 +00:00
|
|
|
},
|
2019-06-14 03:58:30 +00:00
|
|
|
{
|
|
|
|
path: 'tables',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./tables/tables.module').then((mod) => mod.TableModule),
|
2019-06-14 03:58:30 +00:00
|
|
|
},
|
2019-06-15 17:39:43 +00:00
|
|
|
{
|
|
|
|
path: 'taxes',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./taxes/taxes.module').then((mod) => mod.TaxesModule),
|
2019-06-15 17:39:43 +00:00
|
|
|
},
|
2019-08-21 03:02:12 +00:00
|
|
|
{
|
2019-08-25 09:38:59 +00:00
|
|
|
path: 'tax-report',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./tax-report/tax-report.module').then((mod) => mod.TaxReportModule),
|
2019-08-21 03:02:12 +00:00
|
|
|
},
|
2019-06-19 18:47:44 +00:00
|
|
|
{
|
|
|
|
path: 'users',
|
2020-10-11 05:26:29 +00:00
|
|
|
loadChildren: () => import('./users/users.module').then((mod) => mod.UsersModule),
|
2019-06-19 18:47:44 +00:00
|
|
|
},
|
2020-10-11 05:26:29 +00:00
|
|
|
{ path: 'login', component: LoginComponent },
|
|
|
|
{ path: 'logout', component: LogoutComponent },
|
|
|
|
{ path: '', component: HomeComponent },
|
2019-06-13 19:02:34 +00:00
|
|
|
];
|
|
|
|
@NgModule({
|
2020-10-11 05:26:29 +00:00
|
|
|
imports: [
|
|
|
|
RouterModule.forRoot(routes, {
|
|
|
|
onSameUrlNavigation: 'reload',
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
exports: [RouterModule],
|
2019-06-13 19:02:34 +00:00
|
|
|
})
|
2020-10-11 05:26:29 +00:00
|
|
|
export class AppRoutingModule {}
|