Skip to content

Commit

Permalink
fix wrong api url
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanashi committed Nov 7, 2024
1 parent a9c46b4 commit 8972d2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion files/js/Hanashi/Api/Questions/GetSearch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion files/js/Hanashi/Api/Questions/RenderSearch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ts/Hanashi/Api/Questions/GetSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type Response = {
};

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

let response: Response;
Expand Down
2 changes: 1 addition & 1 deletion ts/Hanashi/Api/Questions/RenderSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type Response = {
};

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

let response: Response;
try {
Expand Down

0 comments on commit 8972d2a

Please sign in to comment.