FIX: Fixed route names to match backend changes to display recommendations

This commit is contained in:
JustIceO7
2025-02-06 13:28:09 +00:00
parent 3c18421d2b
commit a6f49e8f66
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ function App() {
const [username, setUsername] = useState<string | null>(null);
useEffect(() => {
fetch("/api/get_login_status")
fetch("/api/user/login_status")
.then((response) => response.json())
.then((data) => {
setIsLoggedIn(data.status);

View File

@@ -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