From a6f49e8f66177cb26657bacc2622408c9db3651b Mon Sep 17 00:00:00 2001 From: JustIceO7 Date: Thu, 6 Feb 2025 13:28:09 +0000 Subject: [PATCH] FIX: Fixed route names to match backend changes to display recommendations --- frontend/src/App.tsx | 2 +- frontend/src/context/StreamsContext.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 9b5ce82..b3f86d4 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -14,7 +14,7 @@ function App() { const [username, setUsername] = useState(null); useEffect(() => { - fetch("/api/get_login_status") + fetch("/api/user/login_status") .then((response) => response.json()) .then((data) => { setIsLoggedIn(data.status); diff --git a/frontend/src/context/StreamsContext.tsx b/frontend/src/context/StreamsContext.tsx index f9ebabe..2b0f721 100644 --- a/frontend/src/context/StreamsContext.tsx +++ b/frontend/src/context/StreamsContext.tsx @@ -35,7 +35,7 @@ export function StreamsProvider({ children }: { children: React.ReactNode }) { const fetch_url = isLoggedIn ? ["/api/get_recommended_streams", "/api/get_followed_category_streams"] - : ["/api/get_streams", "/api/get_categories"]; + : ["/api/streams/popular/4", "/api/categories/popular/4"]; useEffect(() => { // Streams