Commit 3d922eb8 authored by qinhaitao's avatar qinhaitao

refactor: 💡 mockServer db路径

parent e13abe3a
......@@ -5,6 +5,7 @@ var bodyParser = require('body-parser')
var cookieParser = require('cookie-parser')
var { createProxyMiddleware } = require('http-proxy-middleware')
const routers = require('../src/index').default
const dbs = require('../src/db')
const { port, serverProxy } = require('./package.json')
var app = express()
......@@ -61,7 +62,6 @@ app.post('/handler', async (req, res) => {
// 获取本地export的数据库表及云函数
app.get('/getDBHandlers', async (req, res) => {
let dbs = require('../dist/db')
let handlers = routers
// dbsInfo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment