Fix the frontend API calls and implement logins on frontend #7

Merged
dylan merged 24 commits from feat/update-frontend-api-calls into main 2026-03-04 20:20:50 +00:00
Showing only changes of commit 23c58e20ae - Show all commits

View File

@@ -1,10 +1,23 @@
import { Navigate, Route, Routes } from "react-router-dom";
import { useEffect } from "react";
import { Navigate, Route, Routes, useLocation } from "react-router-dom";
import AppLayout from "./components/AppLayout";
import LoginPage from "./pages/Login";
import UploadPage from "./pages/Upload";
import StatPage from "./pages/Stats";
function App() {
const location = useLocation();
useEffect(() => {
const routeTitles: Record<string, string> = {
"/login": "Sign In",
"/upload": "Upload Dataset",
"/stats": "Stats",
};
document.title = routeTitles[location.pathname];
}, [location.pathname]);
return (
<Routes>
<Route element={<AppLayout />}>