mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
30 lines
389 B
JavaScript
30 lines
389 B
JavaScript
import {
|
|
Constant
|
|
} from './_utils'
|
|
const {
|
|
ApiPrefix
|
|
} = Constant
|
|
|
|
const database = [
|
|
|
|
// DASHBOARD SECTION
|
|
{
|
|
id: '1',
|
|
icon: 'home',
|
|
name: 'Main',
|
|
route: '/main',
|
|
},
|
|
{
|
|
id: '2',
|
|
icon: 'user',
|
|
name: 'App Settings',
|
|
route: '/settings'
|
|
}
|
|
|
|
]
|
|
|
|
module.exports = {
|
|
[`GET ${ApiPrefix}/routes`](req, res) {
|
|
res.status(200).json(database)
|
|
},
|
|
} |