#57 makeRequest uses env variable so all requests use the configuration
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user