Skip to content

Commit 735ec95

Browse files
committed
fix server urls
1 parent 7185fa6 commit 735ec95

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

fiduswriter/pandoc_on_server/static/js/modules/pandoc_on_server/app.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

fiduswriter/pandoc_on_server/static/js/modules/pandoc_on_server/editor.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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() {

fiduswriter/pandoc_on_server/static/js/modules/pandoc_on_server/exporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

fiduswriter/pandoc_on_server/static/js/modules/pandoc_on_server/importer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)