migrate to "export default"
also, set no-use-before-define in linter
This commit is contained in:
+11
-10
@@ -1,21 +1,12 @@
|
||||
import apps from '../apps.js';
|
||||
import assert from 'node:assert';
|
||||
import * as archives from '../archives.js';
|
||||
import archives from '../archives.js';
|
||||
import AuditSource from '../auditsource.js';
|
||||
import BoxError from '../boxerror.js';
|
||||
import { HttpError } from '@cloudron/connect-lastmile';
|
||||
import { HttpSuccess } from '@cloudron/connect-lastmile';
|
||||
import safe from 'safetydance';
|
||||
|
||||
export {
|
||||
load,
|
||||
|
||||
list,
|
||||
get,
|
||||
getIcon,
|
||||
del,
|
||||
unarchive
|
||||
};
|
||||
|
||||
async function load(req, res, next) {
|
||||
assert.strictEqual(typeof req.params.id, 'string');
|
||||
@@ -94,3 +85,13 @@ async function unarchive(req, res, next) {
|
||||
|
||||
next(new HttpSuccess(202, { id: result.id, taskId: result.taskId }));
|
||||
}
|
||||
|
||||
export default {
|
||||
load,
|
||||
|
||||
list,
|
||||
get,
|
||||
getIcon,
|
||||
del,
|
||||
unarchive
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user