From b53de384fb235155e48ab505719d65ee5f2fbe03 Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 8 Jul 2021 17:21:03 +0200 Subject: Added frontend boilerplate... --- client/src/router/index.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 client/src/router/index.js (limited to 'client/src/router') diff --git a/client/src/router/index.js b/client/src/router/index.js new file mode 100644 index 0000000..22d739e --- /dev/null +++ b/client/src/router/index.js @@ -0,0 +1,23 @@ +import {createRouter, createWebHistory} from 'vue-router'; +import Home from '../views/Home.vue'; +import ExamplePage from '../views/ExamplePage.vue'; + +const routes = [ + { + path: '/', + name: 'Home', + component: Home + }, + { + path: '/example', + name: 'Example', + component: ExamplePage + } +] + +const router = createRouter({ + history: createWebHistory(process.env.BASE_URL), + routes +}) + +export default router -- cgit v1.2.3