title | issue |
---|---|
Storefront Store-API Proxy |
NEXT-10272 |
- Added
\Shopware\Storefront\Controller\StoreApiProxyController
for proxying Store-API calls in the Storefront with the correct context
Use the HTTP client in your Javascript for calls to the Store API.
Example usage:
import StoreApiClient from 'src/service/store-api-client.service';
const client = new StoreApiClient;
client.get('/store-api/v2/country', function(response) {
console.log(response)
});