archives: add listing

This commit is contained in:
Girish Ramakrishnan
2024-12-10 11:53:29 +01:00
parent f973536f7f
commit 30b0d4cced
8 changed files with 372 additions and 11 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ async function get(req, res, next) {
}
async function getIcon(req, res, next) {
assert.strictEqual(typeof req.app, 'object');
assert.strictEqual(typeof req.params.id, 'string');
assert.strictEqual(typeof req.resource, 'object');
const [error, icon] = await safe(archives.getIcon(req.params.id, { original: req.query.original }));
if (error) return next(BoxError.toHttpError(error));