feat: adding delete button with the corresponding endpoint
All checks were successful
Format / formatting (push) Successful in 6s
Build / build (push) Successful in 44s
CI / build (push) Successful in 12s
Format / formatting (pull_request) Successful in 6s

This commit is contained in:
2025-05-01 19:23:21 +02:00
parent 592331236e
commit 4356a01e4a
6 changed files with 165 additions and 4 deletions

View File

@@ -52,7 +52,30 @@ function finalizeAccount(
// });
// }
function getAllEntrepreneurs(
onSuccessHandler?: (response: AxiosResponse) => void,
onErrorHandler?: (error: AxiosError) => void
): void {
axiosInstance
.get("/unauth/getAllEntrepreneurs")
.then((response) => {
if (onSuccessHandler) {
onSuccessHandler(response);
} else {
defaultApiSuccessHandler(response);
}
})
.catch((error: AxiosError) => {
if (onErrorHandler) {
onErrorHandler(error);
} else {
defaultApiErrorHandler(error);
}
});
}
export {
finalizeAccount,
getAllEntrepreneurs,
// requestJoinProject, // Not yet implemented [cite: 4]
};