xuebaoxin #12
6
app.js
6
app.js
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user