3bc1202c77
- Added ProductCategoriesService for handling product category API interactions. - Created components for listing and viewing product categories. - Implemented UI for managing product categories with a data list component. - Developed StoresService for managing store-related API calls. - Created components for listing and viewing stores with appropriate UI. - Added SuppliersService for handling supplier API interactions. - Implemented components for managing suppliers with a data list component. - Developed UsersService for managing user-related API calls. - Created components for listing and viewing users with appropriate UI. - Enhanced not found page with improved layout and navigation options.
26 lines
701 B
TypeScript
26 lines
701 B
TypeScript
import { NamedRoutes } from '@/core';
|
|
import { Routes } from '@angular/router';
|
|
|
|
export type TUsersRouteNames = 'users' | 'user';
|
|
|
|
export const usersNamedRoutes: NamedRoutes<TUsersRouteNames> = {
|
|
users: {
|
|
path: 'users',
|
|
loadComponent: () => import('../../views/list.component').then((m) => m.UsersComponent),
|
|
meta: {
|
|
title: 'کاربران',
|
|
pagePath: () => '/users',
|
|
},
|
|
},
|
|
user: {
|
|
path: 'users/:userId',
|
|
loadComponent: () => import('../../views/single.component').then((m) => m.UserComponent),
|
|
meta: {
|
|
title: 'کاربر',
|
|
pagePath: () => '/users/:userId',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const USERS_ROUTES: Routes = Object.values(usersNamedRoutes);
|