Files
antd-admin/mock/menu.js
T
zuiidea e09c22fc18 Merge branch 'develop' of https://github.com/zuiidea/antd-admin into develop
# Conflicts:
#	package.json
#	src/pages/dashboard/components/cpu.js
#	src/pages/dashboard/components/user.js
#	yarn.lock
2018-09-09 14:23:00 +08:00

98 lines
1.5 KiB
JavaScript

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