You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.4 KiB
57 lines
1.4 KiB
import { RouteConfig } from 'vue-router'
|
|
import Layout from '@/layout/index.vue'
|
|
|
|
const apigatewayRouter: RouteConfig = {
|
|
path: '/apigateway',
|
|
component: Layout,
|
|
meta: {
|
|
title: 'apigateway',
|
|
icon: 'api-gateway',
|
|
roles: ['ApiGateway.RouteGroup', 'ApiGateway.Global', 'ApiGateway.Route', 'ApiGateway.DynamicRoute', 'ApiGateway.AggregateRoute'],
|
|
alwaysShow: true
|
|
},
|
|
children: [
|
|
{
|
|
path: 'group',
|
|
component: () => import('@/views/admin/apigateway/group.vue'),
|
|
name: 'group',
|
|
meta: {
|
|
title: 'group',
|
|
icon: 'group',
|
|
roles: ['ApiGateway.RouteGroup']
|
|
}
|
|
},
|
|
{
|
|
path: 'global',
|
|
component: () => import('@/views/admin/apigateway/global.vue'),
|
|
name: 'global',
|
|
meta: {
|
|
title: 'global',
|
|
icon: 'global-setting',
|
|
roles: ['ApiGateway.Global']
|
|
}
|
|
},
|
|
{
|
|
path: 'route',
|
|
component: () => import('@/views/admin/apigateway/route.vue'),
|
|
name: 'route',
|
|
meta: {
|
|
title: 'route',
|
|
icon: 'route',
|
|
roles: ['ApiGateway.Route']
|
|
}
|
|
},
|
|
{
|
|
path: 'aggregateRoute',
|
|
component: () => import('@/views/admin/apigateway/aggregateRoute.vue'),
|
|
name: 'aggregateRoute',
|
|
meta: {
|
|
title: 'aggregateRoute',
|
|
icon: 'aggregate',
|
|
roles: ['ApiGateway.AggregateRoute']
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
export default apigatewayRouter
|
|
|