Moved routes from main.js to routes.js