1234567891011121314151617181920212223 |
- import { createRouter, createWebHashHistory } from 'vue-router'
- import HomeView from '../views/HomeView.vue'
- import UserStoriesView from '../views/UserStoriesView.vue'
- const routes = [
- {
- path: '/',
- name: 'home',
- component: HomeView
- },
- {
- path: '/user-stories',
- name: 'user-stories',
- component: UserStoriesView
- }
- ]
- const router = createRouter({
- history: createWebHashHistory(location.pathname),
- routes
- })
- export default router
|