From 59d2253561062ebf43c230991e63630ecb29bc8d Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Fri, 13 Mar 2026 21:36:05 +0100 Subject: [PATCH] url --- client/src/app/shared/api.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/shared/api.service.ts b/client/src/app/shared/api.service.ts index 9c3685e..391bcc9 100644 --- a/client/src/app/shared/api.service.ts +++ b/client/src/app/shared/api.service.ts @@ -461,7 +461,7 @@ export class ApiService { createPdf(data: IKeyHandoverPDF) { return new Promise(resolve => { - this.http.post('/api/key/pdf', data, { + this.http.post('api/key/pdf', data, { responseType: 'blob', }).pipe( this.toast.observe({ @@ -485,7 +485,7 @@ export class ApiService { getHandoverPdf(handoverId: string) { return new Promise(resolve => { - this.http.get(`/api/key/${handoverId}/handover/pdf`,{ + this.http.get(`api/key/${handoverId}/handover/pdf`,{ responseType: 'blob', }).subscribe((blob) => { const url = URL.createObjectURL(blob);