mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-11 22:06:29 +02:00
Rename home route to wish and create an empty home route
This commit is contained in:
@@ -2,6 +2,7 @@ import { RouteConfig } from "react-router-config"
|
||||
|
||||
import App from "../app"
|
||||
import AsyncHome, { loadData as loadHomeData } from "../pages/Home"
|
||||
import AsyncWish, { loadData as loadWishData } from "../pages/Wish"
|
||||
import AsyncVolunteerPage, { loadData as loadVolunteerPageData } from "../pages/VolunteerPage"
|
||||
import Login from "../pages/Login"
|
||||
import Register from "../pages/Register"
|
||||
@@ -26,10 +27,15 @@ export default [
|
||||
component: Login,
|
||||
},
|
||||
{
|
||||
path: "/register",
|
||||
path: "/home",
|
||||
component: AsyncHome,
|
||||
loadData: loadHomeData,
|
||||
},
|
||||
{
|
||||
path: "/wish",
|
||||
component: AsyncWish,
|
||||
loadData: loadWishData,
|
||||
},
|
||||
{
|
||||
component: NotFound,
|
||||
},
|
||||
|
Reference in New Issue
Block a user