Skip to content

Commit

Permalink
KoaJS: Add resource to application context for swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim committed Feb 14, 2022
1 parent fec0ed8 commit e92653f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KoaResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e92653f

Please sign in to comment.