Commit 048dc4a7 authored by Alexandros Georgantas's avatar Alexandros Georgantas

Correction of the backend's endpoint which will be triggered by the action

parent f4b7bb07
......@@ -9,7 +9,6 @@ function htmlToEpubRequest() {
}
function htmlToEpubSuccess(extractedEpubPath) {
console.log('in success', file)
return {
type: T.HTML_TO_EPUB_CONV_SUCCESS,
isConverting: false,
......@@ -18,7 +17,6 @@ function htmlToEpubSuccess(extractedEpubPath) {
}
function htmlToEpubFailure(message) {
console.log('in failure')
return {
type: T.HTML_TO_EPUB_CONV_FAILURE,
isConverting: false,
......@@ -37,7 +35,10 @@ export function htmlToEpub(bookId) {
}
}
return fetch(`/api/collections/${bookId}/epub`, opts).then(
return fetch(
`/api/collections/${bookId}/epub?destination=folder`,
opts
).then(
res => {
dispatch(htmlToEpubSuccess(res.path))
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment