import Vue from 'vue';
import Router from 'vue-router';
import Home from '@/components/Home';
import Profile from '@/components/Profile';

Vue.use(Router);

export default new Router({
	mode: 'history',
	routes: [
		{ path: '/', name: 'Home', component: Home },
		{ path: '/:username', name: 'Profile', component: Profile },
	],
});

@@ -206,25 +206,28 @@
 outes: %5B%0A%09%09%7B
- 
+%0A%09%09%09
 path: '/', n
@@ -224,17 +224,20 @@
 th: '/',
- 
+%0A%09%09%09
 name: 'H
@@ -241,17 +241,20 @@
  'Home',
- 
+%0A%09%09%09
 componen
@@ -264,16 +264,22 @@
 Home
- 
+,%0A%09%09
 %7D,%0A%09%09%7B
- 
+%0A%09%09%09
 path
@@ -293,17 +293,20 @@
 ername',
- 
+%0A%09%09%09
 name: 'P
@@ -313,17 +313,20 @@
 rofile',
- 
+%0A%09%09%09
 componen
@@ -335,17 +335,20 @@
  Profile
- 
+,%0A%09%09
 %7D,%0A%09%5D,%0A%7D

improve code organization