We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ede6b42 commit 62fca36Copy full SHA for 62fca36
wp-react-lib/.changeset/thick-cases-poke.md
@@ -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
@@ -248,7 +248,7 @@ export const search = (
248
subtype?: string,
249
locale?: string,
250
apiBaseUrl?: string) => {
251
- let url = apiBaseUrl ? apiBaseUrl + "/wp/v2/search" : API_ROOT + '/wp/v2/search';
+ let url = apiBaseUrl ? apiBaseUrl + "/dg/v1/search" : API_ROOT + '/dg/v1/search';
252
url += '?lang=' + locale
253
+ (context ? "&context=" + context : '')
254
+ (perPage ? '&per_page=' + perPage : '')
0 commit comments