UI for export of OPML v2, WIP

This commit is contained in:
zadam
2019-02-16 23:33:40 +01:00
parent 1359dd86c2
commit 6fd8e73150
6 changed files with 41 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ class ExportContext {
}
async function exportBranch(req, res) {
const {branchId, type, format, exportId} = req.params;
const {branchId, type, format, version, exportId} = req.params;
const branch = await repository.getBranch(branchId);
const exportContext = new ExportContext(exportId);
@@ -61,7 +61,7 @@ async function exportBranch(req, res) {
await singleExportService.exportSingleNote(exportContext, branch, format, res);
}
else if (format === 'opml') {
await opmlExportService.exportToOpml(exportContext, branch, res);
await opmlExportService.exportToOpml(exportContext, branch, version, res);
}
else {
return [404, "Unrecognized export format " + format];