1 |
|
2 |
|
3 |
|
4 |
|
5 | import Dashboard from './pages/Dashboard';
|
6 | import UserLogin from './pages/UserLogin';
|
7 | import UserRegister from './pages/UserRegister';
|
8 | import Holidays from './pages/Holidays';
|
9 | import Events from './pages/Events';
|
10 | import Activites from './pages/Activites';
|
11 | import Departments from './pages/Departments';
|
12 | import Employee from './pages/Employee';
|
13 | import AddEmployee from './pages/AddEmployee';
|
14 | import Analysis from './pages/Analysis';
|
15 | import Setting from './pages/Setting';
|
16 |
|
17 | const routerConfig = [
|
18 | {
|
19 | path: '/dashboard',
|
20 | component: Dashboard,
|
21 | },
|
22 | {
|
23 | path: '/user/login',
|
24 | component: UserLogin,
|
25 | },
|
26 | {
|
27 | path: '/user/register',
|
28 | component: UserRegister,
|
29 | },
|
30 | {
|
31 | path: '/holidays',
|
32 | component: Holidays,
|
33 | },
|
34 | {
|
35 | path: '/events',
|
36 | component: Events,
|
37 | },
|
38 | {
|
39 | path: '/activites',
|
40 | component: Activites,
|
41 | },
|
42 | {
|
43 | path: '/departments',
|
44 | component: Departments,
|
45 | },
|
46 | {
|
47 | path: '/employee',
|
48 | component: Employee,
|
49 | },
|
50 | {
|
51 | path: '/add/employee',
|
52 | component: AddEmployee,
|
53 | },
|
54 | {
|
55 | path: '/analysis',
|
56 | component: Analysis,
|
57 | },
|
58 | {
|
59 | path: '/setting',
|
60 | component: Setting,
|
61 | },
|
62 | ];
|
63 |
|
64 | export default routerConfig;
|