Skip to content

Commit

Permalink
🩹 Use get method for search games endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryScaletta committed Jul 3, 2022
1 parent 1b563ef commit afec8e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/features/api/apiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,7 @@ export const api = createApi({
}),

searchGames: builder.query<IgdbGame[], string>({
query: (s) => ({
url: `${API_BASE}/games/search?s=${s}`,
method: 'POST',
}),
query: (s) => ({ url: `${API_BASE}/games/search?s=${s}` }),
}),
}),
});
Expand Down

0 comments on commit afec8e7

Please sign in to comment.