wp-plugin-init
Version:
CLI to scaffold a PHP plugin boilerplate structure
14 lines (12 loc) • 503 B
JavaScript
import Dashboard from '@/Pages/Dashboard.vue';
import Settings from '@/Pages/Settings.vue';
import NotFound from '@/Pages/NotFound.vue';
/**
* SPA route table. Each WordPress submenu deep-links into one of these
* via a URL hash (see Hooks\Handlers\AdminMenuHandlers).
*/
export const routes = [
{ path: '/', name: 'dashboard', component: Dashboard },
{ path: '/settings', name: 'settings', component: Settings },
{ path: '/:pathMatch(.*)*', name: 'not-found', component: NotFound },
];