#57 makeRequest uses env variable so all requests use the configuration

This commit is contained in:
2023-04-14 12:55:43 -04:00
parent 1f0e8ca905
commit c1a8f04dc7
7 changed files with 31 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ const ManagePage = () => {
useEffect(() => {
makeRequest({
url: `http://localhost:5000/user/${currentUser.id}/courses`,
endpoint: `user/${currentUser.id}/courses`,
method: "GET",
})
.then((req) => req.json())