Skip to content

Commit

Permalink
ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahugunajii committed Oct 30, 2023
1 parent bc57688 commit 5757af4
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions app/reports/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,6 @@ import { Suspense } from "react";
import Loading from "../loading";
import BottomNavigationBar from "@/components/BottomNavigationBar";

export async function getData() {
const apiKey = process.env.AF_REPORTS_DB_API_KEY;
const studentId = process.env.NEXT_PUBLIC_STUDENT_ID;
const url = `${process.env.AF_REPORTS_URL}/student_reports/${studentId}?format=json`;

try {
const response = await fetch(url, {
method: "GET",
headers: {
accept: "application/json",
Authorization: `Bearer ${apiKey}`,
},
});
const responseData = await response.json();
return responseData;
} catch (error) {
console.log(error);
}
}

export default async function ReportsPage() {
return (
<div>
Expand Down

0 comments on commit 5757af4

Please sign in to comment.