mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
chore: added more advanced routing to elements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
class ApiStockManager {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user