Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/routes-admin.js
import DashboardComponent from '../vue/Admin/Dashboard' | import DashboardComponent from '../vue/Admin/Dashboard' | ||||
import DistlistComponent from '../vue/Admin/Distlist' | |||||
import DomainComponent from '../vue/Admin/Domain' | import DomainComponent from '../vue/Admin/Domain' | ||||
import LoginComponent from '../vue/Login' | import LoginComponent from '../vue/Login' | ||||
import LogoutComponent from '../vue/Logout' | import LogoutComponent from '../vue/Logout' | ||||
import PageComponent from '../vue/Page' | import PageComponent from '../vue/Page' | ||||
import StatsComponent from '../vue/Admin/Stats' | import StatsComponent from '../vue/Admin/Stats' | ||||
import UserComponent from '../vue/Admin/User' | import UserComponent from '../vue/Admin/User' | ||||
const routes = [ | const routes = [ | ||||
{ | { | ||||
path: '/', | path: '/', | ||||
redirect: { name: 'dashboard' } | redirect: { name: 'dashboard' } | ||||
}, | }, | ||||
{ | { | ||||
path: '/dashboard', | path: '/dashboard', | ||||
name: 'dashboard', | name: 'dashboard', | ||||
component: DashboardComponent, | component: DashboardComponent, | ||||
meta: { requiresAuth: true } | meta: { requiresAuth: true } | ||||
}, | }, | ||||
{ | { | ||||
path: '/distlist/:list', | |||||
name: 'distlist', | |||||
component: DistlistComponent, | |||||
meta: { requiresAuth: true } | |||||
}, | |||||
{ | |||||
path: '/domain/:domain', | path: '/domain/:domain', | ||||
name: 'domain', | name: 'domain', | ||||
component: DomainComponent, | component: DomainComponent, | ||||
meta: { requiresAuth: true } | meta: { requiresAuth: true } | ||||
}, | }, | ||||
{ | { | ||||
path: '/login', | path: '/login', | ||||
name: 'login', | name: 'login', | ||||
Show All 27 Lines |