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:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user