|
@@ -8,8 +8,7 @@ import { LoginCs } from '../Pages/Logincs'
|
|
|
import { Register } from '../Pages/Register'
|
|
import { Register } from '../Pages/Register'
|
|
|
import { Home } from '../Pages/Home'
|
|
import { Home } from '../Pages/Home'
|
|
|
import { Puestos } from '../Pages/Puestos'
|
|
import { Puestos } from '../Pages/Puestos'
|
|
|
-// import { Contras } from '../Pages/Contras'
|
|
|
|
|
-import { Contrasv2 as Contras } from '../Pages/ContrasV2'
|
|
|
|
|
|
|
+import { Contrasv2 as Contras } from '../Pages/ContrasV2'
|
|
|
import { Expedientes } from '../Pages/Expedientes'
|
|
import { Expedientes } from '../Pages/Expedientes'
|
|
|
import { Resultados } from '../Pages/Resultados'
|
|
import { Resultados } from '../Pages/Resultados'
|
|
|
import { Configuracion } from '../Pages/Configuracion'
|
|
import { Configuracion } from '../Pages/Configuracion'
|
|
@@ -22,57 +21,57 @@ import { Profile } from '../Pages/Profile'
|
|
|
import { RestorePassword } from '../Pages/RestorePassword'
|
|
import { RestorePassword } from '../Pages/RestorePassword'
|
|
|
|
|
|
|
|
import { HomeUser } from '../Pages/HomeUser'
|
|
import { HomeUser } from '../Pages/HomeUser'
|
|
|
|
|
+import { Prueba } from '../Pages/Prueba.jsx'
|
|
|
|
|
|
|
|
import RequireAuth from '../Components/PrivateRoute'
|
|
import RequireAuth from '../Components/PrivateRoute'
|
|
|
|
|
|
|
|
-export default function MyRoutes () {
|
|
|
|
|
|
|
+export default function MyRoutes() {
|
|
|
|
|
|
|
|
- return(
|
|
|
|
|
- <Routes>
|
|
|
|
|
|
|
+ return (
|
|
|
|
|
+ <Routes>
|
|
|
|
|
|
|
|
- <Route path="/" element={<Navigate to='/login'/>} />
|
|
|
|
|
- <Route path="login" element={<Login/>} />
|
|
|
|
|
- <Route path="logincd" element={<LoginCs/>} />
|
|
|
|
|
- <Route path="password/recuperar" element={<RestorePassword/>} />
|
|
|
|
|
- <Route path="register" element={<Register/>} />
|
|
|
|
|
|
|
+ <Route path="/" element={<Navigate to='/login' />} />
|
|
|
|
|
+ <Route path="login" element={<Login />} />
|
|
|
|
|
+ <Route path="logincd" element={<LoginCs />} />
|
|
|
|
|
+ <Route path="password/recuperar" element={<RestorePassword />} />
|
|
|
|
|
+ <Route path="register" element={<Register />} />
|
|
|
|
|
|
|
|
|
|
+ <Route
|
|
|
|
|
+ path="user"
|
|
|
|
|
+ element={
|
|
|
|
|
+ <RequireAuth>
|
|
|
|
|
+ <User />
|
|
|
|
|
+ </RequireAuth>
|
|
|
|
|
+ }
|
|
|
|
|
+ >
|
|
|
|
|
+ <Route path="home" element={<HomeUser />} />
|
|
|
|
|
+ <Route path="prueba/:id" element={<Prueba/>} />
|
|
|
|
|
+ </Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <Route
|
|
|
|
|
- path="user"
|
|
|
|
|
- element={
|
|
|
|
|
- <RequireAuth>
|
|
|
|
|
- <User/>
|
|
|
|
|
- </RequireAuth>
|
|
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
- <Route path="home" element={<HomeUser/>} />
|
|
|
|
|
- </Route>
|
|
|
|
|
|
|
+ <Route
|
|
|
|
|
+ path="dashboard"
|
|
|
|
|
+ element={
|
|
|
|
|
+ <RequireAuth>
|
|
|
|
|
+ <Dashboard />
|
|
|
|
|
+ </RequireAuth>
|
|
|
|
|
+ }
|
|
|
|
|
+ >
|
|
|
|
|
+ <Route path="home" element={<Home />} />
|
|
|
|
|
+ <Route path="puestos" element={<Puestos />} />
|
|
|
|
|
+ <Route path="perfil" element={<Profile />} />
|
|
|
|
|
+ <Route path="contrasenas" element={<Contras />} />
|
|
|
|
|
+ <Route path="expedientes" element={<Expedientes />} />
|
|
|
|
|
+ <Route path="resultados" element={<Resultados />} />
|
|
|
|
|
+ <Route path="configuraciones" element={<Configuracion />} />
|
|
|
|
|
+ <Route path="historial" element={<Historial />} />
|
|
|
|
|
+ <Route path="pruebas/listar" element={<Pruebas />} />
|
|
|
|
|
+ <Route path="pruebas/crear" element={<PruebaNueva />} />
|
|
|
|
|
+ <Route path="pruebas/aplicar" element={<PruebaAsignar />} />
|
|
|
|
|
+ </Route>
|
|
|
|
|
+ <Route path="*" element={<NotFound />} />
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- <Route
|
|
|
|
|
- path="dashboard"
|
|
|
|
|
- element={
|
|
|
|
|
- <RequireAuth>
|
|
|
|
|
- <Dashboard/>
|
|
|
|
|
- </RequireAuth>
|
|
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
- <Route path="home" element={<Home/>} />
|
|
|
|
|
- <Route path="puestos" element={<Puestos/>} />
|
|
|
|
|
- <Route path="perfil" element={<Profile/>} />
|
|
|
|
|
- <Route path="contrasenas" element={<Contras/>} />
|
|
|
|
|
- <Route path="expedientes" element={<Expedientes/>} />
|
|
|
|
|
- <Route path="resultados" element={<Resultados/>} />
|
|
|
|
|
- <Route path="configuraciones" element={<Configuracion/>} />
|
|
|
|
|
- <Route path="historial" element={<Historial/>} />
|
|
|
|
|
- <Route path="pruebas/listar" element={<Pruebas/>} />
|
|
|
|
|
- <Route path="pruebas/crear" element={<PruebaNueva/>} />
|
|
|
|
|
- <Route path="pruebas/aplicar" element={<PruebaAsignar/>} />
|
|
|
|
|
- </Route>
|
|
|
|
|
- <Route path="*" element={<NotFound/>}/>
|
|
|
|
|
-
|
|
|
|
|
- </Routes>
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ </Routes>
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
|
|
|