init
This commit is contained in:
15
frontend/src/router/index.js
Normal file
15
frontend/src/router/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import CalculatorView from '../views/CalculatorView.vue'
|
||||
import MaterialsView from '../views/MaterialsView.vue'
|
||||
import OrderView from '../views/OrderView.vue'
|
||||
|
||||
const routes = [
|
||||
{ path: '/', name: 'calculator', component: CalculatorView },
|
||||
{ path: '/materials', name: 'materials', component: MaterialsView },
|
||||
{ path: '/order/:calcId', name: 'order', component: OrderView },
|
||||
]
|
||||
|
||||
export default createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
})
|
||||
Reference in New Issue
Block a user