text: import Vue from "vue";
  import Router from "vue-router";
  import Home from "../views/Home.vue";
  import Profile from "../views/Profile.vue";
  import Settings from "../views/Settings.vue";
  import { authGuard } from "../auth";
  
  Vue.use(Router);
  
  const router = new Router({
    mode: "history",
    base: process.env.BASE_URL,
    routes: [
      {
        path: "/",
        name: "home",
        component: Home
      },
      {
        path: "/profile",
        name: "profile",
        component: Profile,
        beforeEnter: authGuard
      },
      {
        path: "/settings",
        name: "settings",
        component: Settings,
        beforeEnter: authGuard
      }
    ]
  });
  
  export default router;
  