Уменьшение запросов get-state к api, добавлен метод get-state-finish

This commit is contained in:
Book Pauk
2020-01-12 18:51:12 +07:00
parent f8481413c9
commit 6faa7b2efe
3 changed files with 93 additions and 25 deletions

View File

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