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