This commit is contained in:
Bastian Wagner
2026-03-13 21:36:05 +01:00
parent 2962f2c68a
commit 59d2253561

View File

@@ -461,7 +461,7 @@ export class ApiService {
createPdf(data: IKeyHandoverPDF) { createPdf(data: IKeyHandoverPDF) {
return new Promise(resolve => { return new Promise(resolve => {
this.http.post('/api/key/pdf', data, { this.http.post('api/key/pdf', data, {
responseType: 'blob', responseType: 'blob',
}).pipe( }).pipe(
this.toast.observe({ this.toast.observe({
@@ -485,7 +485,7 @@ export class ApiService {
getHandoverPdf(handoverId: string) { getHandoverPdf(handoverId: string) {
return new Promise(resolve => { return new Promise(resolve => {
this.http.get(`/api/key/${handoverId}/handover/pdf`,{ this.http.get(`api/key/${handoverId}/handover/pdf`,{
responseType: 'blob', responseType: 'blob',
}).subscribe((blob) => { }).subscribe((blob) => {
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);