window.bannerTutorialApi = new SantaproxyClient({ browserSession: { shopId: {{ shop.id }} }, // the proxy path defined in your shopify.app.toml file, format: /<prefix>/<subpath> endpoint: "/apps/gadget-banner-tutorial" });
// client looks correct, see image attached console.log(window.bannerTutorialApi)
window.bannerTutorialApi.getBanner() // gets error Failed to load resource: the server responded with a status of 500 () }); </script>