PHP Classes

File: src/router/index.js

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WP Emailer   src/router/index.js   Download  
File: src/router/index.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WP Emailer
Allow WordPress users to configure email settings
Author: By
Last change:
Date: 1 year ago
Size: 726 bytes
 

Contents

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