mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-07 08:40:16 +00:00
feat: add delete portfolio to api
This commit is contained in:
parent
762e21e59d
commit
b16c24352e
1 changed files with 9 additions and 0 deletions
|
|
@ -153,4 +153,13 @@ export const apiSubmitPortfolio = async (): Promise<boolean> => {
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
throw errorHandler(e, 'Failed to submit portfolio');
|
throw errorHandler(e, 'Failed to submit portfolio');
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export const apiDeltePortfolio = async (): Promise<boolean> => {
|
||||||
|
try {
|
||||||
|
await axios.post(API_URL + '/candidate/portfolio/delete', {}, { withCredentials: true });
|
||||||
|
return true;
|
||||||
|
} catch (e: any) {
|
||||||
|
throw errorHandler(e, 'Failed to delete portfolio');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in a new issue