feat: add delete portfolio to api

This commit is contained in:
EETagent 2022-12-04 21:35:55 +01:00
parent 762e21e59d
commit b16c24352e

View file

@ -153,4 +153,13 @@ export const apiSubmitPortfolio = async (): Promise<boolean> => {
} catch (e: any) {
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');
}
};