mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +00:00
- Extended motlin sdk and corrected pcm ur - Using new client for below sections - Get all products - Get product - Get all products path - Login & Signup - Customers - Changing product normalizer for pcm products
9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
import { gateway as MoltinGateway, Moltin } from '@moltin/sdk';
|
|
|
|
let client:any = MoltinGateway({
|
|
client_id: process.env.NEXT_PUBLIC_ELASTICPATH_CLIENTID
|
|
});
|
|
|
|
client.PCM.endpoint = 'catalog/products';
|
|
|
|
export default client; |