FIX: Fixed route names to match backend changes to display recommendations
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user