diff --git a/front/src/lib/api.ts b/front/src/lib/api.ts index 4b69c00..a698a2d 100644 --- a/front/src/lib/api.ts +++ b/front/src/lib/api.ts @@ -4,7 +4,7 @@ import TestData from "./test-data"; const API_URL = "http://127.0.0.1:8080"; export async function getPopularToday(): Promise { - const response = await fetch(API_URL + "/api/items"); + const response = await fetch( `${API_URL}/api/items`); const { data, error }: JSONResponse = await response.json(); if (response.ok) {