add archives api

This commit is contained in:
Girish Ramakrishnan
2024-12-09 21:33:26 +01:00
parent 5907975c02
commit 9200e6fc63
7 changed files with 189 additions and 2 deletions
+2
View File
@@ -185,6 +185,8 @@ async function install(req, res, next) {
if ('enableTurn' in data && typeof data.enableTurn !== 'boolean') return next(new HttpError(400, 'enableTurn must be boolean'));
if ('backupId' in data && typeof data.backupId !== 'string') return next(new HttpError(400, 'backupId must be non-empty string'));
let [error, result] = await safe(appstore.downloadManifest(data.appStoreId, data.manifest));
if (error) return next(BoxError.toHttpError(error));