food/src/router/index.js

47 lines
1.0 KiB
JavaScript
Raw Normal View History

2017-09-19 02:41:00 +02:00
import Vue from 'vue';
import Router from 'vue-router';
2017-09-22 16:35:53 +02:00
import About from '@/views/About';
2017-09-20 04:11:40 +02:00
import Home from '@/views/Home';
import ManualBarcode from '@/views/ManualBarcode';
import Product from '@/views/Product';
import Preferences from '@/views/Preferences';
2017-09-22 16:35:53 +02:00
import Scan from '@/views/Scan';
2017-09-19 02:41:00 +02:00
Vue.use(Router);
export default new Router({
routes: [
2017-09-22 16:35:53 +02:00
{
path: '/about',
name: 'About',
component: About,
},
2017-09-19 02:41:00 +02:00
{
path: '/',
name: 'Home',
component: Home,
},
2017-09-20 04:11:40 +02:00
{
path: '/barcode',
name: 'ManualBarcode',
component: ManualBarcode,
},
2017-09-19 02:41:00 +02:00
{
path: '/barcode/:barcode',
name: 'Product',
component: Product,
},
2017-09-20 04:11:40 +02:00
{
path: '/preferences',
name: 'Preferences',
component: Preferences,
},
2017-09-22 16:35:53 +02:00
{
path: '/scan',
name: 'Scan',
component: Scan,
},
2017-09-19 02:41:00 +02:00
],
});