Skip to content

Commit

Permalink
chore: 홈 데이터 100개씩 가져오도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
JW-Ahn0 committed Dec 9, 2024
1 parent e24af00 commit 0febf13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ export const HomePage = () => {
* @returns void
*/
const fetchPosts = async () => {
const response = await http.get<IHomePostResponse>(HOME_API_URL);
const response = await http.get<IHomePostResponse, { size: number }>(
HOME_API_URL,
{ size: 100 }
);
if (response.success && response.code === "COMMON200") {
return response.result.content.map(createHomePostItem);
}
Expand Down

0 comments on commit 0febf13

Please sign in to comment.