Create a fetch wrapper for the API calls, it will handle: - add correct basename on the api request - add Bearer automatically on the api request - logout automatically on 401 request
The folder app will be used for more than one app, so it was renamed to apps.