rapidquery
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -7,3 +7,3 @@ { | ||
"description": "an API protocol with json style to CRUD mongdo database. use only one api url.", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"main": "rapidquery", | ||
@@ -10,0 +10,0 @@ "devDependencies": {}, |
@@ -101,2 +101,7 @@ # RapidQuery | ||
在Koa2下使用POST | ||
```key | ||
app.use(rapid.middleware.koa); | ||
``` | ||
--- | ||
@@ -103,0 +108,0 @@ |
@@ -6,3 +6,3 @@ /** | ||
module.exports = (ctx, next) => { | ||
module.exports = async(ctx, next) => { | ||
if (ctx.method === 'POST') { | ||
@@ -9,0 +9,0 @@ try { |
21035
607