Skip to content

Commit

Permalink
refactor: api url 변경 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
Creative-Lee committed Oct 17, 2023
1 parent 2152aa3 commit 7365915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/features/search/remotes/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getSingerSearchPreview = async (query: string): Promise<SingerSearc

export const getSingerSearch = async (query: string): Promise<SingerSearchResult[]> => {
const encodedQuery = encodeURIComponent(query);
return await fetcher(`/singers?name=${encodedQuery}&search=singer,song`, 'GET');
return await fetcher(`/singers?name=${encodedQuery}&search=singer&search=song`, 'GET');
};

export const getSingerDetail = async (singerId: number): Promise<SingerSearchResult> => {
Expand Down

0 comments on commit 7365915

Please sign in to comment.