Добавлен работа с RemoteWebDavStorage, в т.ч. через api

This commit is contained in:
Book Pauk
2020-01-20 21:39:55 +07:00
parent 5535bd91c8
commit 47e46f13c3
4 changed files with 194 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ function initRoutes(app, config) {
['POST', '/api/reader/load-book', reader.loadBook.bind(reader), [aAll], {}],
['POST', '/api/reader/storage', reader.storage.bind(reader), [aAll], {}],
['POST', '/api/reader/upload-file', [upload.single('file'), reader.uploadFile.bind(reader)], [aAll], {}],
['POST', '/api/reader/restore-cached-file', reader.restoreCachedFile.bind(reader), [aAll], {}],
['POST', '/api/worker/get-state', worker.getState.bind(worker), [aAll], {}],
['POST', '/api/worker/get-state-finish', worker.getStateFinish.bind(worker), [aAll], {}],
];