chore: added more advanced routing to elements

This commit is contained in:
2024-12-02 17:54:46 +01:00
parent 346d20fc08
commit b602819179
14 changed files with 120 additions and 105 deletions
+16
View File
@@ -0,0 +1,16 @@
import http from '../http';
import { API } from '../types/api.types';
export class ApiManager {
static async fetchActiveData() {
try {
const responseData = (await http.get<API.ActiveData>('/api/getActiveData')).data;
return responseData;
} catch (error) {
console.error('Nie udało się pobrać zdalnej zawartości', error);
}
return null;
}
}
-3
View File
@@ -1,3 +0,0 @@
class ApiStockManager {
}