Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 548 Bytes

2020-09-02-storefront-store-api-proxy.md

File metadata and controls

19 lines (18 loc) · 548 Bytes
title issue
Storefront Store-API Proxy
NEXT-10272

Core

  • Added \Shopware\Storefront\Controller\StoreApiProxyController for proxying Store-API calls in the Storefront with the correct context

Upgrade Information

HTTP Client for Store API

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)
});