diff --git a/mobile/src/bundles/talent/talent-api.ts b/mobile/src/bundles/talent/talent-api.ts index 91f568a27..7f86aa3bf 100644 --- a/mobile/src/bundles/talent/talent-api.ts +++ b/mobile/src/bundles/talent/talent-api.ts @@ -1,4 +1,5 @@ import { ApiPath, ContentType } from '~/bundles/common/enums/enums'; +import { UserDetailsApiPath } from '~/bundles/talent/enums/enums'; import { type UserDetailsCreateRequestDto, type UserDetailsGeneralRequestDto, @@ -22,24 +23,30 @@ class TalentApi extends HttpApiBase { public async completeTalentDetails( payload: UserDetailsCreateRequestDto, ): Promise { - const response = await this.load(this.getFullEndpoint('/', {}), { - method: 'POST', - contentType: ContentType.JSON, - payload: JSON.stringify(payload), - hasAuth: true, - }); + const response = await this.load( + this.getFullEndpoint(UserDetailsApiPath.ROOT, {}), + { + method: 'POST', + contentType: ContentType.JSON, + payload: JSON.stringify(payload), + hasAuth: true, + }, + ); return await response.json(); } public async completeOnboardingStep( payload: UserDetailsGeneralRequestDto, ): Promise { - const response = await this.load(this.getFullEndpoint('/', {}), { - method: 'PATCH', - contentType: ContentType.JSON, - payload: JSON.stringify(payload), - hasAuth: true, - }); + const response = await this.load( + this.getFullEndpoint(UserDetailsApiPath.ROOT, {}), + { + method: 'PATCH', + contentType: ContentType.JSON, + payload: JSON.stringify(payload), + hasAuth: true, + }, + ); return await response.json(); }