Merge remote-tracking branch 'origin/notice_apperance' into integrateWithAuth

This commit is contained in:
Patryk
2025-06-07 12:54:19 +02:00
5 changed files with 474 additions and 34 deletions

View File

@@ -0,0 +1,13 @@
import axios from "axios";
const API_URL = "https://testowe.zikor.pl/api/v1";
export async function getUserById(userId) {
try {
const response = await axios.get(`${API_URL}/clients/get/${userId}`);
return response.data;
} catch (err) {
console.error(`Nie udało się pobrać danych użytkownika o ID ${userId}.`, err.response.status);
throw err;
}
}