Front v3 #42
@@ -32,12 +32,14 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const [incomeResponse, expenseResponse, incomeTypesResponse, expenseTypesResponse] = await Promise.all([
|
const [incomeResponse, expenseResponse, incomeTypesResponse, expenseTypesResponse] = await Promise.all([
|
||||||
axios.get('http://localhost:8081/incomes/personal-incomes', config),
|
axios.get('http://localhost:8081/incomes/personal-incomes?month=11', config),
|
||||||
axios.get('http://localhost:8081/expenses/personal-expenses', config),
|
axios.get('http://localhost:8081/expenses/personal-expenses?month=11', config),
|
||||||
axios.get('http://localhost:8081/incomes/categories', config),
|
axios.get('http://localhost:8081/incomes/categories', config),
|
||||||
axios.get('http://localhost:8081/expenses/categories', config)
|
axios.get('http://localhost:8081/expenses/categories', config)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
console.log("Data", incomeResponse.data);
|
||||||
|
|
||||||
incomeData.set(incomeResponse.data);
|
incomeData.set(incomeResponse.data);
|
||||||
expenseData.set(expenseResponse.data);
|
expenseData.set(expenseResponse.data);
|
||||||
incomeTypes.set(incomeTypesResponse.data);
|
incomeTypes.set(incomeTypesResponse.data);
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.get('http://localhost:8081/users/getUserData', config);
|
const response = await axios.get('http://localhost:8081/users/get-user-data', config);
|
||||||
const data = response.data;
|
const data = response.data;
|
||||||
username = data.username;
|
username = data.username;
|
||||||
console.log(username)
|
console.log(username)
|
||||||
|
|||||||
Reference in New Issue
Block a user