PHP Classes

File: src/router/index.js

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WP Vue Kit Plugin   src/router/index.js   Download  
File: src/router/index.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WP Vue Kit Plugin
Vue.js plugin to build WordPress user interfaces
Author: By
Last change:
Date: 1 year ago
Size: 630 bytes
 

Contents

Class file image Download
/** * External dependencies. */ import { createRouter, createWebHistory } from "vue-router"; /** * Internal dependencies. */ import List from "../pages/List.vue"; import Settings from "../pages/Settings.vue"; import Graph from "../pages/Graph.vue"; const routes = [ { path: "/", name: "Settings", component: Settings, alias: '/settings' }, { path: "/list", name: "List", component: List, }, { path: "/graph", name: "Graph", component: Graph } ]; const router = createRouter({ history: createWebHistory(wpEmailer.site.base_url), routes }); export default router;