Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop-frontend' into 506-refac…
Browse files Browse the repository at this point in the history
…tor-번들-사이즈-최적화
  • Loading branch information
shackstack committed Sep 21, 2023
2 parents e34a14d + a40b48e commit 747d1fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/api/restaurant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ import type { RestaurantListData } from '~/@types/api.types';
import type { RestaurantsQueryParams } from '~/@types/restaurant.types';

export const getRestaurants = async (queryParams: RestaurantsQueryParams) => {

if (queryParams.boundary) {
const queryString = getQueryString(queryParams);
const response = await apiClient.get<RestaurantListData>(`/restaurants?${queryString}`);


return response.data;
}
return null;
};

export const getRestaurantDetail = async (restaurantId: string, celebId: string) => {
const response = await apiClient.get(`/restaurants/${restaurantId}?celebId=${celebId}`);
const response = await apiUserClient.get(`/restaurants/${restaurantId}?celebId=${celebId}`);
return response.data;
};

Expand Down

0 comments on commit 747d1fa

Please sign in to comment.