File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
fiduswriter/pandoc_on_server/static/js/modules/pandoc_on_server Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,10 @@ export class AppPandoc {
2828 return Promise . resolve ( this . pandocAvailable )
2929 }
3030
31- return getJson ( "/api/pandoc/available/" ) . then ( ( { available} ) => {
32- this . pandocAvailable = available
33- } )
31+ return getJson ( "/api/pandoc_on_server/available/" ) . then (
32+ ( { available} ) => {
33+ this . pandocAvailable = available
34+ }
35+ )
3436 }
3537}
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ export class EditorPandoc {
2020 return Promise . resolve ( this . pandocAvailable )
2121 }
2222
23- return getJson ( "/api/pandoc/available/" ) . then ( ( { available} ) => {
24- this . pandocAvailable = available
25- } )
23+ return getJson ( "/api/pandoc_on_server/available/" ) . then (
24+ ( { available} ) => {
25+ this . pandocAvailable = available
26+ }
27+ )
2628 }
2729
2830 modifyMenu ( ) {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export class PandocConversionExporter extends PandocExporter {
4444 return acc
4545 } , { } )
4646 const hasBibliography = files . hasOwnProperty ( "bibliography.bib" )
47- return jsonPost ( "/api/pandoc /export/" , {
47+ return jsonPost ( "/api/pandoc_on_server /export/" , {
4848 text : JSON . stringify ( this . conversion . json ) ,
4949 from : "json" ,
5050 to : this . format ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class PandocConversionImporter extends PandocImporter {
2828 const binary = format [ 3 ]
2929 return fileToString ( this . file , binary )
3030 . then ( text => {
31- return jsonPost ( "/api/pandoc /export/" , {
31+ return jsonPost ( "/api/pandoc_on_server /export/" , {
3232 from,
3333 to : "json" ,
3434 standalone : true ,
You can’t perform that action at this time.
0 commit comments