feat: add download for default agreement

This commit is contained in:
2025-11-16 16:26:00 +01:00
parent 45f54058d4
commit 21e776ec26

View File

@@ -13,8 +13,8 @@ async function requestDownload() {
loading.value = true;
try {
const agreement = await client(`/api/internships/${props.internship_id}/default-agreement`);
// todo...
const agreement = await client<Blob>(`/api/internships/${props.internship_id}/default-agreement`);
triggerDownload(agreement, `default-agreement-${props.internship_id}.pdf`);
} catch (e) {
if (e instanceof FetchError) {