diff --git a/KoaResource.js b/KoaResource.js index 15fe5be..b8279a3 100644 --- a/KoaResource.js +++ b/KoaResource.js @@ -125,7 +125,7 @@ class Resource { } if (!this.app.context.resourcejs[path]) { - this.app.context.resourcejs[path] = {}; + this.app.context.resourcejs[path] = this; } // Add a stack processor so this stack can be executed independently of Express.