29 lines
551 B
JavaScript
29 lines
551 B
JavaScript
// App router
|
|
|
|
|
|
// Pages
|
|
import Index from "./pages/index-page";
|
|
import Spells from "./pages/spells-page";
|
|
import SchoolSingle from "./pages/schools/single-school-page";
|
|
import World from "./pages/world-page";
|
|
|
|
// Routes
|
|
const routes = [
|
|
{
|
|
path: "*", redirect: "/",
|
|
},
|
|
{
|
|
path: '/', component: Index,
|
|
},
|
|
{
|
|
path: '/spells', component: Spells,
|
|
},
|
|
{
|
|
path: '/school/:id', component: SchoolSingle, props: true
|
|
},
|
|
{
|
|
path: '/world', component: World,
|
|
}
|
|
];
|
|
|
|
export default routes; |