no need for pdf-js

This commit is contained in:
Thomas Ruoff
2017-02-19 22:06:22 +01:00
parent 8542c0bf2d
commit 32d226259a
8 changed files with 58 additions and 55078 deletions

15
webapp/apiHelper.js Normal file
View File

@@ -0,0 +1,15 @@
export function generatePdf(state){
return fetch('//localhost:5000/pdf/generate/brief', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(state)
}).then(function(res) {
if (res.status !== 200) {
console.log('request failed');
return;
}
return res.json();
});
}