Hybris 如何添加新的occ端点参数以获取url?

Hybris 如何添加新的occ端点参数以获取url?,hybris,spartacus-storefront,Hybris,Spartacus Storefront,我正在引用defaultOccProductConfig,并希望添加新端点以动态获取url 比如, productReviews: 'products/${productCode}/reviews', // this is existing endpoint productManipulation: 'products/${productCode}/manipulation' // this is what i want to add 在导入模块后添加此端点时出错。如何覆盖我的新端点?在结节

我正在引用defaultOccProductConfig,并希望添加新端点以动态获取url

比如,

productReviews: 'products/${productCode}/reviews', // this is existing endpoint
productManipulation: 'products/${productCode}/manipulation' // this is what i want to add

在导入模块后添加此端点时出错。如何覆盖我的新端点?

在结节(即应用程序模块)中,请通过导入
ConfigModule.withConfig()
来提供自定义配置块。例如:

@NgModule({
进口:[
/* ... */
ConfigModule.withConfig({
后端:{
货币监理署:{
端点:{
productManipulation:'products/${productCode}/manipulation'//这是我要添加的内容
}
}
}
})
/* ... */
]
})
导出类AppModule{};
有关更多信息,请参阅文档:

在结节(即应用程序模块)中,请通过导入
ConfigModule.withConfig()
来提供自定义配置块。例如:

@NgModule({
进口:[
/* ... */
ConfigModule.withConfig({
后端:{
货币监理署:{
端点:{
productManipulation:'products/${productCode}/manipulation'//这是我要添加的内容
}
}
}
})
/* ... */
]
})
导出类AppModule{};
有关更多信息,请参阅文档:


谢谢您的回答。它对我有效,我试图在B2cStorefrontModule.withConfig中添加此项,因此它会返回一个错误。谢谢您的回答。它对我有效,我试图将其添加到B2cStorefrontModule.withConfig中,因此它会返回一个错误。