@bpframework/middleware-koa-cors
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -32,3 +32,3 @@ 'use strict'; | ||
name: exports.name, | ||
afterRoute, | ||
afterRoute: afterRoute.middleware, | ||
beforeRoute, | ||
@@ -35,0 +35,0 @@ initiator: (app) => { |
@@ -47,3 +47,3 @@ 'use strict'; | ||
module.exports = async function (ctx) { | ||
exports.middleware = async function (ctx) { | ||
@@ -50,0 +50,0 @@ if (global[SYM_ENABLE]) { |
@@ -15,3 +15,3 @@ 'use strict'; | ||
if (ctx.method.toLowerCase() == 'options') { | ||
await afterRoute(ctx); | ||
await afterRoute.middleware(ctx); | ||
ctx.response.body = ''; | ||
@@ -18,0 +18,0 @@ return false; |
@@ -34,3 +34,3 @@ { | ||
"name": "@bpframework/middleware-koa-cors", | ||
"version": "0.0.3" | ||
"version": "0.0.4" | ||
} |
6561