删除添加数据行
This commit is contained in:
parent
eeb4236b21
commit
3e052a9578
6
app.js
6
app.js
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user