Skip to content

Commit 2adbe32

Browse files
fix: adapt matching route
1 parent 3621f57 commit 2adbe32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/src/services/matchesService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const useMatchesService = () => {
6464

6565
const acceptMatch = async (matchId: string): Promise<void> => {
6666
try {
67-
await api.post(`${API_VERSION}/matching/match/${matchId}/accept`);
67+
await api.post(`${API_VERSION}/matching/rsvp/${matchId}/accept`);
6868
} catch (error) {
6969
console.error('Error accepting match:', error);
7070
throw error;
@@ -73,7 +73,7 @@ export const useMatchesService = () => {
7373

7474
const rejectMatch = async (matchId: string): Promise<void> => {
7575
try {
76-
await api.post(`${API_VERSION}/matching/match/${matchId}/reject`);
76+
await api.post(`${API_VERSION}/matching/rsvp/${matchId}/reject`);
7777
} catch (error) {
7878
console.error('Error rejecting match:', error);
7979
throw error;

0 commit comments

Comments
 (0)