
<script lang="ts">
import Vue from "vue";
import VueRouter, {
  RouteConfig,
  RouterOptions,
  RouterMode,
  NavigationGuard
} from "vue-router";
Vue.use(VueRouter);

// Views
import Home from "../views/home.vue";
import Settings from "../views/settings.vue";
import Applications from "../views/application.vue";

const routes: RouteConfig[] = [
  /** Define Application Routes */
  {
    path: "/",
    component: Home,
    name: "root"
  },
  {
    path: "/settings",
    component: Settings
  },
  {
    path: "/applications",
    component: Applications
  }
];
const options: RouterOptions = {
  routes,
  mode: "history",
  base: "/admin"
};
const AppRouter = new VueRouter(options);

export default AppRouter;
</script>
