Skip to content

Commit

Permalink
restaurant menu URL updated
Browse files Browse the repository at this point in the history
  • Loading branch information
haddercone committed Dec 26, 2023
1 parent 13b32f2 commit 7635c41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
export const IMAGE_CDN_URL =
"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_508,h_320,c_fill/";

export const MENU_IMAGE_ITEM_URL =
"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_208,h_208,c_fit/";

export const CROUSEL_IMAGE_CDN_URL =
"https://res.cloudinary.com/swiggy/image/upload/fl_lossy,f_auto,q_auto,w_520,h_520/";
export const RESTAURANT_MENU_URL =
"https://corsproxy.io/?https://www.swiggy.com/dapi/menu/pl?page-type=REGULAR_MENU&complete-menu=true&lat=27.8973944&lng=78.0880129&restaurantId=";

export const RESTAURANT_MENU_URL = "https://food-villa-server.vercel.app/api/restaurant/menu?&lat=27.8973944&lng=78.0880129&menuId="

export const SWIGGY_RESTAURANT_CDN_URL =
"https://food-villa-server.vercel.app/api/restaurants?lat=28.4594965&lng=77.0266383&is-seo-homepage-enabled=true&page_type=DESKTOP_WEB_LISTING";

Expand Down
2 changes: 0 additions & 2 deletions src/utils/useRestaurant.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const useRestaurant = () => {
async function getRestaurantInfo() {
const data = await fetch(RESTAURANT_MENU_URL + resId);
const json = await data.json();
console.log("Menu data: ",json);
console.log("MENU Response",json?.data.cards);
setRes(json?.data?.cards);
setIsLoaded(true);
}
Expand Down

0 comments on commit 7635c41

Please sign in to comment.