import Vue from 'vue'
import Router from 'vue-router'

import Home from './views/Home'
import Setup from './views/Setup';

Vue.use(Router)

export default new Router({
	mode: 'history',
	base: OC.generateUrl('/apps/mail/'),
	linkActiveClass: 'active',
	routes: [
		{
			path: '/',
			name: 'home',
			component: Home
		},
		{
			path: '/accounts/:accountId/folders/:folderId',
			name: 'folder',
			component: Home
		},
		{
			path: '/setup',
			name: 'setup',
			component: Setup
		}
	]
})

import Vue from 'vue'
import Router from 'vue-router'

import Home from './views/Home'
import Setup from './views/Setup';

Vue.use(Router)

export default new Router({
	base: OC.generateUrl('/apps/mail/'),
	linkActiveClass: 'active',
	routes: [
		{
			path: '/',
			name: 'home',
			component: Home
		},
		{
			path: '/accounts/:accountId/folders/:folderId',
			name: 'folder',
			component: Home
		},
		{
			path: '/setup',
			name: 'setup',
			component: Setup
		}
	]
})

Fix Vue routing to use hash routing
Fix Vue routing to use hash routing

Signed-off-by: Christoph Wurst <7abde52c298496fa169fb750f91f213a282142af@winzerhof-wurst.at>
