// FIXME: This file should handle the students API // Functions may include: import { authedAPIRequest } from "../utils/auth"; // - getStudent (get a student from the API by its uid or login) export async function getStudent(id) { const response = await authedAPIRequest(`/students/${id}`, { method: "get", }); if (!response) { return null; } else { return response.json(); } } // - getUserUidFromToken (get the user's uid from the token in local storage) // - updateStudent (update the student's profile through the API)