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