This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { api } from "@/config/axios";
|
||||
import { RESTAURANT_FETCH_TIMEOUT_MS } from "@/app/[name]/lib/getRestaurant";
|
||||
import {
|
||||
AboutResponse,
|
||||
ReviewsResponse,
|
||||
@@ -6,7 +7,9 @@ import {
|
||||
} from "../types/Types";
|
||||
|
||||
export const getAbout = async (name: string): Promise<AboutResponse> => {
|
||||
const { data } = await api.get<AboutResponse>(`/public/restaurants/${name}`);
|
||||
const { data } = await api.get<AboutResponse>(`/public/restaurants/${name}`, {
|
||||
timeout: RESTAURANT_FETCH_TIMEOUT_MS,
|
||||
});
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user