Skip to content

[Refactor] Consolidate all API calls into an api-client.js file #131

Open
@vegetabill

Description

@vegetabill

With webpack support enabled by #94 we can now make our browser JavaScript better.

Please move all fetch calls currently in main.js into a new file called api-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UIcreate an interface for the new save functionality.good first issueGood for newcomers🛑 blockedWaiting on one or more issues to be merged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions