HuskieRobotics / HuskieRobotics/SPOT

remove server-side HTTP GET requests

Open
#90 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
27
Forks
29
PR merge metrics
No merged PRs in 30d

Description

There a few points in the server-side code that get data from the sever by specifying an endpoint. For example:

```
let manualSchedule = await axios.get(`http://localhost:${process.env.PORT || 8080}/schedule/matches`).then(res=>res.data) // temp fix
```

This should be replace with a simple function invocation. If the endpoint needs to be available to clients, decompose the behavior into a function that can also be invoked from the router.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.