Makes every call to the API succeed or fail the same way. It reads the JSON envelope, and turns the errors a request can end in into messages. Every component and hook that calls the API goes through it.
Usage
import * as mod from "src/utils/shared/api.ts";