Standardize URLs
This commit is contained in:
@@ -8,7 +8,7 @@ import {API_CONFIG} from '../../../config/api-config';
|
||||
})
|
||||
export class UtilityService {
|
||||
|
||||
private pathUrl = `${API_CONFIG.BASE_URL}/v1/path`;
|
||||
private pathUrl = `${API_CONFIG.BASE_URL}/api/v1/path`;
|
||||
|
||||
private http = inject(HttpClient);
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ export class UrlHelperService {
|
||||
private readonly baseUrl = API_CONFIG.BASE_URL;
|
||||
|
||||
getCoverUrl(bookId: number, coverUpdatedOn?: string): string {
|
||||
return `${this.baseUrl}/v1/book/${bookId}/cover?${coverUpdatedOn || ''}`;
|
||||
return `${this.baseUrl}/api/v1/book/${bookId}/cover?${coverUpdatedOn || ''}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user