|
@@ -8,8 +8,7 @@ import { LoginCs } from '../Pages/Logincs'
|
8
|
8
|
import { Register } from '../Pages/Register'
|
9
|
9
|
import { Home } from '../Pages/Home'
|
10
|
10
|
import { Puestos } from '../Pages/Puestos'
|
11
|
|
-// import { Contras } from '../Pages/Contras'
|
12
|
|
-import { Contrasv2 as Contras } from '../Pages/ContrasV2'
|
|
11
|
+import { Contrasv2 as Contras } from '../Pages/ContrasV2'
|
13
|
12
|
import { Expedientes } from '../Pages/Expedientes'
|
14
|
13
|
import { Resultados } from '../Pages/Resultados'
|
15
|
14
|
import { Configuracion } from '../Pages/Configuracion'
|
|
@@ -22,57 +21,57 @@ import { Profile } from '../Pages/Profile'
|
22
|
21
|
import { RestorePassword } from '../Pages/RestorePassword'
|
23
|
22
|
|
24
|
23
|
import { HomeUser } from '../Pages/HomeUser'
|
|
24
|
+import { Prueba } from '../Pages/Prueba.jsx'
|
25
|
25
|
|
26
|
26
|
import RequireAuth from '../Components/PrivateRoute'
|
27
|
27
|
|
28
|
|
-export default function MyRoutes () {
|
|
28
|
+export default function MyRoutes() {
|
29
|
29
|
|
30
|
|
- return(
|
31
|
|
- <Routes>
|
|
30
|
+ return (
|
|
31
|
+ <Routes>
|
32
|
32
|
|
33
|
|
- <Route path="/" element={<Navigate to='/login'/>} />
|
34
|
|
- <Route path="login" element={<Login/>} />
|
35
|
|
- <Route path="logincd" element={<LoginCs/>} />
|
36
|
|
- <Route path="password/recuperar" element={<RestorePassword/>} />
|
37
|
|
- <Route path="register" element={<Register/>} />
|
|
33
|
+ <Route path="/" element={<Navigate to='/login' />} />
|
|
34
|
+ <Route path="login" element={<Login />} />
|
|
35
|
+ <Route path="logincd" element={<LoginCs />} />
|
|
36
|
+ <Route path="password/recuperar" element={<RestorePassword />} />
|
|
37
|
+ <Route path="register" element={<Register />} />
|
38
|
38
|
|
|
39
|
+ <Route
|
|
40
|
+ path="user"
|
|
41
|
+ element={
|
|
42
|
+ <RequireAuth>
|
|
43
|
+ <User />
|
|
44
|
+ </RequireAuth>
|
|
45
|
+ }
|
|
46
|
+ >
|
|
47
|
+ <Route path="home" element={<HomeUser />} />
|
|
48
|
+ <Route path="prueba/:id" element={<Prueba/>} />
|
|
49
|
+ </Route>
|
39
|
50
|
|
40
|
51
|
|
41
|
|
- <Route
|
42
|
|
- path="user"
|
43
|
|
- element={
|
44
|
|
- <RequireAuth>
|
45
|
|
- <User/>
|
46
|
|
- </RequireAuth>
|
47
|
|
- }
|
48
|
|
- >
|
49
|
|
- <Route path="home" element={<HomeUser/>} />
|
50
|
|
- </Route>
|
|
52
|
+ <Route
|
|
53
|
+ path="dashboard"
|
|
54
|
+ element={
|
|
55
|
+ <RequireAuth>
|
|
56
|
+ <Dashboard />
|
|
57
|
+ </RequireAuth>
|
|
58
|
+ }
|
|
59
|
+ >
|
|
60
|
+ <Route path="home" element={<Home />} />
|
|
61
|
+ <Route path="puestos" element={<Puestos />} />
|
|
62
|
+ <Route path="perfil" element={<Profile />} />
|
|
63
|
+ <Route path="contrasenas" element={<Contras />} />
|
|
64
|
+ <Route path="expedientes" element={<Expedientes />} />
|
|
65
|
+ <Route path="resultados" element={<Resultados />} />
|
|
66
|
+ <Route path="configuraciones" element={<Configuracion />} />
|
|
67
|
+ <Route path="historial" element={<Historial />} />
|
|
68
|
+ <Route path="pruebas/listar" element={<Pruebas />} />
|
|
69
|
+ <Route path="pruebas/crear" element={<PruebaNueva />} />
|
|
70
|
+ <Route path="pruebas/aplicar" element={<PruebaAsignar />} />
|
|
71
|
+ </Route>
|
|
72
|
+ <Route path="*" element={<NotFound />} />
|
51
|
73
|
|
52
|
|
-
|
53
|
|
- <Route
|
54
|
|
- path="dashboard"
|
55
|
|
- element={
|
56
|
|
- <RequireAuth>
|
57
|
|
- <Dashboard/>
|
58
|
|
- </RequireAuth>
|
59
|
|
- }
|
60
|
|
- >
|
61
|
|
- <Route path="home" element={<Home/>} />
|
62
|
|
- <Route path="puestos" element={<Puestos/>} />
|
63
|
|
- <Route path="perfil" element={<Profile/>} />
|
64
|
|
- <Route path="contrasenas" element={<Contras/>} />
|
65
|
|
- <Route path="expedientes" element={<Expedientes/>} />
|
66
|
|
- <Route path="resultados" element={<Resultados/>} />
|
67
|
|
- <Route path="configuraciones" element={<Configuracion/>} />
|
68
|
|
- <Route path="historial" element={<Historial/>} />
|
69
|
|
- <Route path="pruebas/listar" element={<Pruebas/>} />
|
70
|
|
- <Route path="pruebas/crear" element={<PruebaNueva/>} />
|
71
|
|
- <Route path="pruebas/aplicar" element={<PruebaAsignar/>} />
|
72
|
|
- </Route>
|
73
|
|
- <Route path="*" element={<NotFound/>}/>
|
74
|
|
-
|
75
|
|
- </Routes>
|
76
|
|
- )
|
|
74
|
+ </Routes>
|
|
75
|
+ )
|
77
|
76
|
}
|
78
|
77
|
|