- Added more pages and fixed some links (schools, single spell, and login page)
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
// Pages
|
||||
import Index from "./pages/index-page";
|
||||
import Spells from "./pages/spells-page";
|
||||
import SchoolSingle from "./pages/schools/single-school-page";
|
||||
import Index from "~/pages/index-page"
|
||||
|
||||
import Spells from "~/pages/spells/spells-page"
|
||||
import SpellSingle from "~/pages/spells/single-spell-page"
|
||||
|
||||
import Schools from "./pages/schools/schools-page"
|
||||
import SchoolSingle from "~/pages/schools/single-school-page"
|
||||
|
||||
import Login from "~/pages/user/login-page"
|
||||
|
||||
// Routes
|
||||
const routes = [
|
||||
@@ -12,11 +18,20 @@ const routes = [
|
||||
path: '/', component: Index,
|
||||
},
|
||||
{
|
||||
path: '/spells', component: Spells,
|
||||
path: '/sorts', component: Spells,
|
||||
},
|
||||
{
|
||||
path: '/school/:id', component: SchoolSingle, props: true
|
||||
}
|
||||
path: '/sorts/:id', component: SpellSingle, props: true,
|
||||
},
|
||||
{
|
||||
path: '/ecoles', component: Schools,
|
||||
},
|
||||
{
|
||||
path: '/ecoles/:id', component: SchoolSingle, props: true,
|
||||
},
|
||||
{
|
||||
path: '/connexion', component: Login,
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Reference in New Issue
Block a user