diff --git a/frontend/src/lib/@api/candidate.ts b/frontend/src/lib/@api/candidate.ts index c91e020..73fbfc5 100644 --- a/frontend/src/lib/@api/candidate.ts +++ b/frontend/src/lib/@api/candidate.ts @@ -153,4 +153,13 @@ export const apiSubmitPortfolio = async (): Promise => { } catch (e: any) { throw errorHandler(e, 'Failed to submit portfolio'); } +}; + +export const apiDeltePortfolio = async (): Promise => { + try { + await axios.post(API_URL + '/candidate/portfolio/delete', {}, { withCredentials: true }); + return true; + } catch (e: any) { + throw errorHandler(e, 'Failed to delete portfolio'); + } }; \ No newline at end of file