This commit is contained in:
seb
2026-10-19 01:02:08 +02:00
parent 9b40d1db87
commit eb15bcb83b
3 changed files with 274 additions and 147 deletions

View File

@@ -54,4 +54,16 @@ export const shipment = {
return http(`/api/shipment/${id}/file/${fileId}`, { method: 'DELETE' });
},
// #endregion
// #region POST /api/shipment/:id/pdf — createPdf
createPdf(id) {
return http(`/api/shipment/${id}/pdf`, { method: 'POST' });
},
// #endregion
// #region GET /api/shipment/:id/file/:fileId — getFileUrl
getFileUrl(id, fileId) {
return `/api/shipment/${encodeURIComponent(id)}/file/${encodeURIComponent(fileId)}`;
},
// #endregion
};