diff --git a/backend/services/mpc-service/src/infrastructure/external/mpc-system/coordinator-client.ts b/backend/services/mpc-service/src/infrastructure/external/mpc-system/coordinator-client.ts index 65bf63c5..dffefdda 100644 --- a/backend/services/mpc-service/src/infrastructure/external/mpc-system/coordinator-client.ts +++ b/backend/services/mpc-service/src/infrastructure/external/mpc-system/coordinator-client.ts @@ -95,7 +95,7 @@ export class MPCCoordinatorClient implements OnModuleInit { this.logger.log(`Joining session: ${request.sessionId}`); try { - const response = await this.client.post('/sessions/join', { + const response = await this.client.post('/api/v1/sessions/join', { session_id: request.sessionId, party_id: request.partyId, join_token: request.joinToken, @@ -127,7 +127,7 @@ export class MPCCoordinatorClient implements OnModuleInit { this.logger.log(`Reporting completion for session: ${request.sessionId}`); try { - await this.client.post('/sessions/report-completion', { + await this.client.post('/api/v1/sessions/report-completion', { session_id: request.sessionId, party_id: request.partyId, public_key: request.publicKey, @@ -147,7 +147,7 @@ export class MPCCoordinatorClient implements OnModuleInit { this.logger.log(`Getting status for session: ${sessionId}`); try { - const response = await this.client.get(`/sessions/${sessionId}/status`); + const response = await this.client.get(`/api/v1/sessions/${sessionId}/status`); return { sessionId: response.data.session_id, @@ -170,7 +170,7 @@ export class MPCCoordinatorClient implements OnModuleInit { this.logger.log(`Reporting failure for session: ${sessionId}`); try { - await this.client.post('/sessions/report-failure', { + await this.client.post('/api/v1/sessions/report-failure', { session_id: sessionId, party_id: partyId, error_message: errorMessage,