Фронт

This commit is contained in:
Халимов Рустам
2026-03-27 16:04:46 +03:00
parent 28fb8c25de
commit 030ae1e4e4
19 changed files with 234 additions and 174 deletions
@@ -1,3 +1,4 @@
import { deepNormalize } from '../utils/normalize';
const API_BASE = '/api';
export class HttpClient {
@@ -44,7 +45,8 @@ export class HttpClient {
throw new Error(errorMessage);
}
return response.json();
const jsonData = await response.json();
return deepNormalize(jsonData);
}
}