Basic wrapper for the fetch api, you can pass this object into a fronto-connect instance
import{Connect}from'fronto-connect';importapifrom'fronto-api';classStoreextendsConnect{namespace='api/v1';resource='resource';}constsource=api({endpoint: 'https://endpoint',header: (h)=>{h.append('Some-Key',someValue);},request: {credentials: 'same-origin',}});newStore(source);