xuebaoxin #12

Manually merged
theluyuan merged 2 commits from xuebaoxin into master 2019-11-12 23:31:19 +08:00
Showing only changes of commit 3e052a9578 - Show all commits

6
app.js
View File

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