Skip to content

Commit 8972d2a

Browse files
committed
fix wrong api url
1 parent a9c46b4 commit 8972d2a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

files/js/Hanashi/Api/Questions/GetSearch.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

files/js/Hanashi/Api/Questions/RenderSearch.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/Hanashi/Api/Questions/GetSearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type Response = {
66
};
77

88
export async function searchQuestions(query: string): Promise<ApiResult<Response>> {
9-
const url = new URL(`${window.WSC_API_URL}index.php?api/rpc/hanashi/questions/search`);
9+
const url = new URL(`${window.WSC_RPC_API_URL}hanashi/questions/search`);
1010
url.searchParams.set("query", query);
1111

1212
let response: Response;

ts/Hanashi/Api/Questions/RenderSearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type Response = {
66
};
77

88
export async function renderSearch(): Promise<ApiResult<Response>> {
9-
const url = new URL(`${window.WSC_API_URL}index.php?api/rpc/hanashi/questions/search/render`);
9+
const url = new URL(`${window.WSC_RPC_API_URL}hanashi/questions/search/render`);
1010

1111
let response: Response;
1212
try {

0 commit comments

Comments
 (0)