{"size": 874, "ext": "js", "max_stars_repo_path": "vue.config.js", "max_stars_repo_name": "badManPro/resume-it", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "vue.config.js", "max_issues_repo_name": "badManPro/resume-it", "max_issues_repo_issues_event_min_datetime": "2022-02-19T06:37:36.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T10:29:36.000Z", "max_forks_repo_path": "vue.config.js", "max_forks_repo_name": "badManPro/resume-it", "max_forks_repo_forks_event_min_datetime": "2021-12-11T03:05:45.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-11T03:05:45.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 27.3125, "max_line_length": 57, "alphanum_fraction": 0.5011441648}
const path = require('path')
function resolve(dir) {
    return path.join(__dirname, dir)
}

const express = require('express')
var app = express()
var appData = require('./public/zh_cn.json')
var cnMsg = appData
var apiRoutes = express.Router()
app.use('/api',apiRoutes)
module.exports = {
    chainWebpack: (config) => {
        config.resolve.alias
            .set('@', resolve('src'))
            .set('common', resolve('src/common'))
            .set('components', resolve('src/components'))
            .set('base', resolve('src/base'))
            .set('api', resolve('src/api'))
            .set('assets', resolve('src/assets'))
    },
    devServer: {
        before(app) {
            app.get('/api/cnMsg', (req, res) => {
                res.json({
                    errno: 0,
                    data: cnMsg
                })
            })
        }
    }
}