删除添加数据行

This commit is contained in:
pplokijuhyg 2019-11-12 23:30:52 +08:00
parent eeb4236b21
commit 3e052a9578

6
app.js
View File

@ -5,12 +5,6 @@ dbs = require("./bin/mongodb.js")('mongodb://localhost:27017/',"myblog")
// console.log(requter)
// import requter from "./bin/router"
const app = new Koa();
dbs.add('a','a').then((res)=>{
console.log(res)
}).catch((err)=>{
console.log(err)
})
app.use(async (ctx,next)=>{
// await next();
console.log(ctx.url)