Skip to content

Commit

Permalink
Correct route implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
martindale committed Oct 29, 2024
1 parent 5d0c591 commit 7c1bf81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ class FabricHTTPServer extends Service {

_addAllRoutes () {
for (let i = 0; i < this.settings.routes.length; i++) {
this._addRoute(this.settings.routes[i]);
const route = this.settings.routes[i];
this._addRoute(route.method, route.path, route.handler);
}

return this;
Expand Down

0 comments on commit 7c1bf81

Please sign in to comment.