Skip to content

Commit

Permalink
Update baseURL to match API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
VermiumSifell committed Aug 6, 2023
1 parent 14a689a commit f1f5513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/CtrlPanelAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class CtrlPanelAPI {
const plainUrl = await this.getPlainUrl();
const plainToken = await this.getPlainToken();

this.api.defaults.baseURL = plainUrl;
this.api.defaults.baseURL = `${plainUrl}/api`;
this.api.defaults.headers.common["Authorization"] = plainToken
? `Bearer ${plainToken}`
: undefined;
Expand Down

0 comments on commit f1f5513

Please sign in to comment.