Skip to content

Commit 62fca36

Browse files
chore(TCDICORE-350): fix wp search endpoint
1 parent ede6b42 commit 62fca36

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devgateway/wp-react-lib": patch
3+
---
4+
5+
fix wp search endpoint

wp-react-lib/src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export const search = (
248248
subtype?: string,
249249
locale?: string,
250250
apiBaseUrl?: string) => {
251-
let url = apiBaseUrl ? apiBaseUrl + "/wp/v2/search" : API_ROOT + '/wp/v2/search';
251+
let url = apiBaseUrl ? apiBaseUrl + "/dg/v1/search" : API_ROOT + '/dg/v1/search';
252252
url += '?lang=' + locale
253253
+ (context ? "&context=" + context : '')
254254
+ (perPage ? '&per_page=' + perPage : '')

0 commit comments

Comments
 (0)