cygnal/src/router/index.js
Phyks (Lucas Verney) 74a42abe72 Add a way to share a specific map position
Also rework the way Map component is handled to make it cleaner and more
efficient.

Fix for issue #23.
2018-07-26 08:47:31 +02:00

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,
},
],
});