import { createRouter, createWebHashHistory } from 'vue-router' import Trackers from "../views/Trackers"; import Settings from "../views/Settings"; Array.prototype.pushToBeginning = function (toPush) { return this.unshift.apply(this, [toPush]); } const routes = [ { path: '/', name: 'Trackers', component: Trackers }, { path: '/settings', name: 'Settings', component: Settings }, ] const router = createRouter({ history: createWebHashHistory(), routes }) export default router