【发布时间】:2018-01-09 23:16:24
【问题描述】:
我正在尝试设置这个 repo Angular 2 Universal + WordPress REST API: https://github.com/jussikinnula/angular2-universal-wordpress
在get函数中有一个搜索/wp-json/wp/v2/find?path= 是否已从 WordPress rest api 中删除? 我尝试在我的网络上进行搜索并收到 404 错误
我的网址路径
http://ecommerce-ux.london/wp-json/wp/v2/find?path=
使用 find 获取请求
get(path: string) {
if (path === "") {
path = "header";
}
return this.apiService.get("/wp-json/wp/v2/find?path=" + path)
.map(content => new Content(content))
.do(content => this.setMeta(content))
.catch(error => Observable.of(new Content({})));
}
【问题讨论】:
标签: wordpress api wordpress-rest-api get-request