diff --git a/src/signs/application/SignService.ts b/src/signs/application/SignService.ts index 16c262c65..86bf3d1b4 100644 --- a/src/signs/application/SignService.ts +++ b/src/signs/application/SignService.ts @@ -33,4 +33,11 @@ export default class SignService { listAllSigns(): Bluebird { return this.signsRepository.listAllSigns() } + findSignsByOrder( + signName: string, + order: string, + sortEra: string + ): Bluebird { + return this.signsRepository.findSignsByOrder(signName, order, sortEra) + } } diff --git a/src/signs/infrastructure/SignRepository.ts b/src/signs/infrastructure/SignRepository.ts index db1e6fa22..47a10e236 100644 --- a/src/signs/infrastructure/SignRepository.ts +++ b/src/signs/infrastructure/SignRepository.ts @@ -80,6 +80,16 @@ class SignRepository { listAllSigns(): Promise { return this.apiClient.fetchJson(`/signs/all`, false) } + + findSignsByOrder( + signName: string, + order: string, + sortEra: string + ): Promise { + return this.apiClient.fetchJson( + `/signs/${encodeURIComponent(signName)}/${order}/${sortEra}` + ) + } } export default SignRepository