fix incorrect url

This commit is contained in:
Fishandchips321 2026-03-09 18:35:11 +00:00
parent f556bc2ced
commit 9f6c40c54e

View file

@ -11,7 +11,7 @@ export interface SearchResult {
}
export const search = async (searchTerm: string, serverId: string): Promise<Array<SearchResult>> => {
const response = await axios.get<Array<SearchResult>>(encodeURI(`${apiUrl}/search?searchTerm=${searchTerm}&serverId=${serverId}`), { withCredentials: true });
const response = await axios.get<Array<SearchResult>>(encodeURI(`${apiUrl}/search?searchTerm=${searchTerm}&serverUrl=${serverId}`), { withCredentials: true });
return response.data;
}