Skip to content

Function: getEcomEndpoints

getEcomEndpoints(config): undefined | Router

Generates an Express middleware based on the given project configuration.

Parameters

Name Type Description
config CoreConfig Core configuration to get middleware for.

Returns

undefined | Router

Express router handling the Connect-for-Commerce endpoints.