fix: Update API base URL to include versioning

- Modify the base URL in the ApiClient constructor to append '/api/v1', ensuring compatibility with versioned API endpoints.
This commit is contained in:
2026-02-26 22:27:25 +08:00
parent 0aa51cc932
commit 3f313283df
3 changed files with 198 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ export class ApiClient {
constructor(baseUrl: string) {
this.http = axios.create({
baseURL: baseUrl.replace(/\/$/, '') + '/api',
baseURL: baseUrl.replace(/\/$/, '') + '/api/v1',
timeout: 10000,
});
}