[Refactor] Consolidate all API calls into an api-client.js file #131
Labels
🛑 blocked
Waiting on one or more issues to be merged
good first issue
Good for newcomers
UI
create an interface for the new save functionality.
With webpack support enabled by #94 we can now make our browser JavaScript better.
Please move all
fetch
calls currently inmain.js
into a new file calledapi-client.js
.That way we can consolidate all error handling and if the API call returns a 401 we will need to prompt the user to log back in.
The text was updated successfully, but these errors were encountered: