27 lines
760 B
TypeScript
27 lines
760 B
TypeScript
import { NamedRoutes } from '@/core';
|
|
import { Routes } from '@angular/router';
|
|
|
|
export type TGuildGoodsRouteNames = 'goods';
|
|
|
|
export const guildGoodsNamedRoutes: NamedRoutes<TGuildGoodsRouteNames> = {
|
|
goods: {
|
|
path: 'goods',
|
|
loadComponent: () =>
|
|
import('../../views/goods/list.component').then((m) => m.GuildGoodsComponent),
|
|
// @ts-ignore
|
|
meta: {
|
|
title: 'کالاها',
|
|
},
|
|
},
|
|
// goodCategory: {
|
|
// path: 'good_categories/:categoryId',
|
|
// loadComponent: () => import('../../views/categories/').then((m) => m.GuildComponent),
|
|
// // @ts-ignore
|
|
// meta: {
|
|
// title: 'دستهبندی کالا',
|
|
// },
|
|
// },
|
|
};
|
|
|
|
export const GUILD_GOODS_ROUTES: Routes = Object.values(guildGoodsNamedRoutes);
|