Phyks (Lucas Verney)
74a42abe72
Also rework the way Map component is handled to make it cleaner and more efficient. Fix for issue #23.
39 lines
850 B
JavaScript
39 lines
850 B
JavaScript
import Vue from 'vue';
|
|
import Router from 'vue-router';
|
|
import About from '@/views/About.vue';
|
|
import Map from '@/views/Map.vue';
|
|
import Onboarding from '@/views/Onboarding.vue';
|
|
import Settings from '@/views/Settings.vue';
|
|
|
|
Vue.use(Router);
|
|
|
|
export default new Router({
|
|
routes: [
|
|
{
|
|
path: '/about',
|
|
name: 'About',
|
|
component: About,
|
|
},
|
|
{
|
|
path: '/map=:zoom/:lat/:lng',
|
|
name: 'SharedMap',
|
|
component: Map,
|
|
},
|
|
{
|
|
path: '/map',
|
|
name: 'Map',
|
|
component: Map,
|
|
},
|
|
{
|
|
path: '/',
|
|
name: 'Onboarding',
|
|
component: Onboarding,
|
|
},
|
|
{
|
|
path: '/settings',
|
|
name: 'Settings',
|
|
component: Settings,
|
|
},
|
|
],
|
|
});
|