old_contents: 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 },
  	],
  });
  
new_contents: 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,
  		},
  	],
  });
  
subject: improve code organization