Skip to content

Commit

Permalink
fix: generates one api per controller (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanndoj committed Sep 27, 2021
1 parent 72a3027 commit 01edb6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/ClientApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export class ClientApiService {
}

buildRoutes(params: ClientApiBuildParams): ServiceModel[] {
return this.platform.routes.map(({ provider }) => {
return this.platform.getMountedControllers().map(({ provider, route }) => {
const serviceBuilder = new SDKApiServiceBuilder(
provider.instance.constructor.name,
provider.path,
route,
params?.controllerNameProvider
);

Expand Down

0 comments on commit 01edb6d

Please sign in to comment.