Files
antd-admin/mock/route.js
T

98 lines
1.6 KiB
JavaScript

import { Constant } from './_utils'
const { ApiPrefix } = Constant
const database = [
{
id: '1',
icon: 'dashboard',
name: 'Dashboard',
route: '/dashboard',
},
{
id: '2',
breadcrumbParentId: '1',
name: 'Users',
icon: 'user',
route: '/user',
},
{
id: '7',
breadcrumbParentId: '1',
name: 'Posts',
icon: 'shopping-cart',
route: '/post',
},
{
id: '21',
menuParentId: '-1',
breadcrumbParentId: '2',
name: 'User Detail',
route: '/user/:id',
},
{
id: '3',
breadcrumbParentId: '1',
name: 'Request',
icon: 'api',
route: '/request',
},
{
id: '4',
breadcrumbParentId: '1',
name: 'UI Element',
icon: 'camera-o',
},
{
id: '43',
breadcrumbParentId: '4',
menuParentId: '4',
name: 'DropOption',
icon: 'bars',
route: '/UIElement/dropOption',
},
{
id: '45',
breadcrumbParentId: '4',
menuParentId: '4',
name: 'Editor',
icon: 'edit',
route: '/UIElement/editor',
},
{
id: '5',
breadcrumbParentId: '1',
name: 'Charts',
icon: 'code-o',
},
{
id: '51',
breadcrumbParentId: '5',
menuParentId: '5',
name: 'ECharts',
icon: 'line-chart',
route: '/chart/ECharts',
},
{
id: '52',
breadcrumbParentId: '5',
menuParentId: '5',
name: 'highCharts',
icon: 'bar-chart',
route: '/chart/highCharts',
},
{
id: '53',
breadcrumbParentId: '5',
menuParentId: '5',
name: 'Rechartst',
icon: 'area-chart',
route: '/chart/Recharts',
}
]
module.exports = {
[`GET ${ApiPrefix}/routes`](req, res) {
res.status(200).json(database)
},
}