Merge branch 'front_foundation' of https://gitea.piair.dev/piair/MyINPulse into front_foundation
All checks were successful
Format / formatting (push) Successful in 7s
Build / build (push) Successful in 42s
CI / build (push) Successful in 14s
Format / formatting (pull_request) Successful in 6s

This commit is contained in:
Mohamed Maoulainine Maoulainine
2025-05-02 01:52:52 +02:00
8 changed files with 192 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]
};