Skip to content

Commit

Permalink
refector: get 유틸 함수로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
minjeoong committed Jan 18, 2025
1 parent ae329b3 commit fed8a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/domain/community/search/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { API_PATH } from "@api/constants/apiPath";
import { api } from "@api/index";
import { get } from "@api/index";
import { paths } from "src/type/schema";

type searchGetResponse =
Expand All @@ -17,6 +17,6 @@ type searchPostRequest = paths["/api/dev/search"]["post"]["requestBody"];
// };

export const getSearch = async () => {
const { data } = await api.get<searchGetResponse>(API_PATH.SEARCH, {});
const { data } = await get<searchGetResponse>(API_PATH.SEARCH, {});
return data.data;
};

0 comments on commit fed8a55

Please sign in to comment.