url
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user