analytics + categories sort in creation + auto focus on sum

This commit is contained in:
Vladimir Voronin
2025-01-12 14:15:09 +03:00
parent 60934d4335
commit 086015001e
4 changed files with 71 additions and 261 deletions

View File

@@ -23,3 +23,8 @@ export const updateCategory = async (id: number, category: any) => {
export const deleteCategory = async (id: number) => {
return await apiClient.delete(`/categories/${id}`);
};
export const getCategoriesSumsRequest = async () => {
return await apiClient.get('/categories/by-month');
}