mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
17 lines
385 B
TypeScript
17 lines
385 B
TypeScript
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;
|
|
}
|
|
}
|