Hybris 如何添加新的occ端点参数以获取url?
我正在引用defaultOccProductConfig,并希望添加新端点以动态获取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 在导入模块后添加此端点时出错。如何覆盖我的新端点?在结节
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{};
有关更多信息,请参阅文档: