-
{isGenerated.toString()}
+
+
>
diff --git a/frontend/src/pages/TimetableMod.tsx b/frontend/src/pages/TimetableMod.tsx
index bcb7fa6..0c321bf 100644
--- a/frontend/src/pages/TimetableMod.tsx
+++ b/frontend/src/pages/TimetableMod.tsx
@@ -5,7 +5,8 @@ import Footer from "../components/Footer";
import BackButton from "../components/BackButton";
import { Outlet } from "react-router-dom";
import ModSidebar from "../components/ModSiderbar";
-import { TimetableSolution } from "../scripts/api";
+import { REMOTE_API_URL, TimetableSolution } from "../scripts/api";
+import { useAuthContext } from "../security/AuthContext";
/**
* Renders the TimetableMod component to display and modify the generated
@@ -16,9 +17,10 @@ import { TimetableSolution } from "../scripts/api";
*/
export default function TimetableMod() {
const [loading, setLoading] = useState(true);
+ const { authHeader } = useAuthContext();
useEffect(() => {
- fetch("http://localhost:8080/timetabling/view")
+ fetch(REMOTE_API_URL + "/timetabling/view", { headers: { 'Authorization': authHeader } })
.then((response) => {
if (!response.ok) {
throw new Error("Network response was not ok");
@@ -54,10 +56,8 @@ export default function TimetableMod() {
diff --git a/frontend/src/pages/spreadsheets/Building.tsx b/frontend/src/pages/spreadsheets/Building.tsx
deleted file mode 100644
index be3ccc9..0000000
--- a/frontend/src/pages/spreadsheets/Building.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import Spreadsheet from '../../components/Spreadsheet.tsx'
-import { DB_BUILDINGS } from '../../scripts/persistence.ts';
-
-/**
- *
- * @returns Spreadsheet input page for buildings information.
- */
-export default function Building() {
-
- return (
- <>
-