Skip to content

Commit

Permalink
fix(rest): Move server instantiation to class definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Delisle committed Oct 2, 2017
1 parent fa3026d commit 33eaf05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/rest/src/rest-component.ts
Expand Up @@ -40,16 +40,15 @@ export class RestComponent implements Component {
};
servers: {
[name: string]: Constructor<Server>;
} = {
RestServer: RestServer,
};

constructor(
@inject(CoreBindings.APPLICATION_INSTANCE) app: Application,
@inject(RestBindings.CONFIG) config?: RestComponentConfig,
) {
if (!config) config = {};
this.servers = {
RestServer: RestServer,
};
}
}

Expand Down

0 comments on commit 33eaf05

Please sign in to comment.