Front upd
This commit is contained in:
@@ -32,12 +32,14 @@
|
||||
|
||||
try {
|
||||
const [incomeResponse, expenseResponse, incomeTypesResponse, expenseTypesResponse] = await Promise.all([
|
||||
axios.get('http://localhost:8081/incomes/personal-incomes', config),
|
||||
axios.get('http://localhost:8081/expenses/personal-expenses', config),
|
||||
axios.get('http://localhost:8081/incomes/personal-incomes?month=11', 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/expenses/categories', config)
|
||||
]);
|
||||
|
||||
console.log("Data", incomeResponse.data);
|
||||
|
||||
incomeData.set(incomeResponse.data);
|
||||
expenseData.set(expenseResponse.data);
|
||||
incomeTypes.set(incomeTypesResponse.data);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
};
|
||||
|
||||
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;
|
||||
username = data.username;
|
||||
console.log(username)
|
||||
|
||||
Reference in New Issue
Block a user