From 9f6c40c54eb3138ab887eefd224dc00c18136e33 Mon Sep 17 00:00:00 2001 From: Fishandchips321 Date: Mon, 9 Mar 2026 18:35:11 +0000 Subject: [PATCH] fix incorrect url --- frontend/src/Lib/Search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Lib/Search.ts b/frontend/src/Lib/Search.ts index aa058ca..da98fb9 100644 --- a/frontend/src/Lib/Search.ts +++ b/frontend/src/Lib/Search.ts @@ -11,7 +11,7 @@ export interface SearchResult { } export const search = async (searchTerm: string, serverId: string): Promise> => { - const response = await axios.get>(encodeURI(`${apiUrl}/search?searchTerm=${searchTerm}&serverId=${serverId}`), { withCredentials: true }); + const response = await axios.get>(encodeURI(`${apiUrl}/search?searchTerm=${searchTerm}&serverUrl=${serverId}`), { withCredentials: true }); return response.data; }