- Added more pages and fixed some links (schools, single spell, and login page)

This commit is contained in:
Alexis
2020-07-03 22:19:31 +02:00
parent e6f0ee38aa
commit 5d1b44cf6d
10 changed files with 104 additions and 37 deletions

View File

@@ -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;