diff options
author | Mateja <mail@matejamaric.com> | 2021-07-08 17:21:03 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-07-08 17:21:03 +0200 |
commit | b53de384fb235155e48ab505719d65ee5f2fbe03 (patch) | |
tree | 0c3d95fc767ca5c8b70e8aa7d53ed15cc9ee6a60 /client/src/router | |
download | mevn-ecommerce-b53de384fb235155e48ab505719d65ee5f2fbe03.tar.gz mevn-ecommerce-b53de384fb235155e48ab505719d65ee5f2fbe03.zip |
Added frontend boilerplate...
Diffstat (limited to 'client/src/router')
-rw-r--r-- | client/src/router/index.js | 23 |
1 files changed, 23 insertions, 0 deletions
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 |