recent action API added

This commit is contained in:
victorAnumudu
2024-12-12 19:38:44 +01:00
parent bf41d91640
commit 94d8e9f0ef
5 changed files with 143 additions and 103 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
const queryKeys = {
dashboard: ['dashboard']
dashboard: ['dashboard'],
recentAction: ['recent-action']
}
export default queryKeys
+7 -2
View File
@@ -36,8 +36,8 @@ const getAuxEnd = (path) => {
// localStorage.clear();
// window.location.href = `/login?sessionExpired=true`;
}).catch(err => {
// throw new Error(err.response.data.message);
return err
throw new Error(err.response.data.message);
// return err
})
}
@@ -54,3 +54,8 @@ export const loginUser = (reqData) => {
export const accountDashboard = () => {
return getAuxEnd(`/panel/account/dash`)
}
// FUNCTION TO GET DASHBOARD RECENT ACTIONS SECTION
export const recentActions = () => {
return getAuxEnd(`/panel/account/actions`)
}