export class ApiStatusRepository {
    async getStatus() {
        const response = await fetch('/api/system/status', {
            headers: { Accept: 'application/json' },
        });

        if (!response.ok) {
            throw new Error(`Erreur HTTP ${response.status}`);
        }

        return response.json();
    }
}
