diff --git a/science-quest/src/components/admin/AjoutScientifique.vue b/science-quest/src/components/admin/AjoutScientifique.vue new file mode 100644 index 0000000..51e40d6 --- /dev/null +++ b/science-quest/src/components/admin/AjoutScientifique.vue @@ -0,0 +1,46 @@ + + + \ No newline at end of file diff --git a/science-quest/src/main.js b/science-quest/src/main.js index 572bbe3..1a8168c 100644 --- a/science-quest/src/main.js +++ b/science-quest/src/main.js @@ -14,12 +14,14 @@ import NotFound from "./components/erreurs/NotFound.vue" import TestParametreURL from "./components/TestParametreURL.vue" import Login from "./components/Login.vue" import KahootVue from './components/jeux/kahoot/Kahoot.vue' +import AdminAjoutScientifique from "./components/admin/AjoutScientifique.vue" const routes = [ { path: '/', component: PagePrincipale }, { path: '/login', component: Login }, { path: '/kahoot', component: KahootVue}, //TODO: changer la route pour qu'elle soit trouvée automatiquement par le serveur (ce que demande l'utilisateur) { path: '/exemple/:id', component: TestParametreURL }, + { path: '/admin/ajout_scientifique', component: AdminAjoutScientifique }, { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound }, ]